node.js - How To Reduce a Javascript Date Object to a String in this Format: "02/14/2010" -
this question has answer here:
how can convert javascript date objects date string in following format:
date object
2000-01-12 23:00:00.000z
resulting string
"01/12/2000 23"
date.getdate() + '/' + (date.getmonth() +1) + '/' + date.getfullyear() + ' ' + (date.gethours() + 1)
why +1
ask? because javascript. :(
Comments
Post a Comment