if you want to remove seconds from date local string you can use ... .
toLocaleString return Saturday, January 25, 2014 10:34:59 AM
var d = new Date();
d.toLocaleString().replace(/:\d{2}\s/,' ');
out putof this code is Saturday, January 25, 2014 10:34 AM
if you want add specific time then
var d = new Date(yourTimestamp*1000);
d.toLocaleString().replace(/:\d{2}\s/,' ');
toLocaleString return Saturday, January 25, 2014 10:34:59 AM
var d = new Date();
d.toLocaleString().replace(/:\d{2}\s/,' ');
out putof this code is Saturday, January 25, 2014 10:34 AM
if you want add specific time then
var d = new Date(yourTimestamp*1000);
d.toLocaleString().replace(/:\d{2}\s/,' ');
so much ty c:!
ReplyDeleteall seconds format is :00 ?
ReplyDelete