node.js - How To Reduce a Javascript Date Object to a String in this Format: "02/14/2010" -


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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -