Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
116
rated 0 times [  119] [ 3]  / answers: 1 / hits: 25290  / 10 Years ago, wed, april 16, 2014, 12:00:00

I would like to know how to get a specific date format (date or month or day or year) from a timestamp. I am wanting to use this in a view with Backbone JS


More From » date

 Answers
18



var d = new Date(1397639141184);
alert(d.getDate() + '/' + (d.getMonth()+1) + '/' + d.getFullYear());




[#71437] Monday, April 14, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
carlymykalac

Total Points: 740
Total Questions: 91
Total Answers: 91

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
carlymykalac questions
Fri, Dec 10, 21, 00:00, 3 Years ago
Mon, Sep 2, 19, 00:00, 5 Years ago
;