I have 8/28/2014 12:00:00 AM and i want to access Date= 8/12/2014 and time= 12:00 AM.
How can i separate this date and time in javascript?
I used the following code and got the date according to my requirement but i got time 0:00 but i need 12:00 AM.How it is possible?
var date = new Date(starttime);
var startday = date.getDate();
var startmonth = date.getMonth() + 1;
var startyear = date.getFullYear();
var formatDate = startday + "/" + startmonth + "/" + startyear;
var starttime = date.getHours() + ":" + date.getMinutes();