I have datetime-local html control on my form and I need to set date and time on it dynamically via JS or jQuery. How can I do it?
This would do the trick
$("#publishDate").val("2013-03-18T13:00");
You need to use 2 digits for the month to make your sample work.