var date = \"2012-01-18T16:03\"; var date = new Date(date); console.log(date.getMinutes()); console.log(date.getMinutes().length)
This returns 3.
$(".min").append( (date.getMinutes()<10?'0':'') + date.getMinutes() );
new to JS so this was very helpful the most ppl looking at this prob new too so this is how i got it to show in the div called "class="min"
hope it helps someone