javascript date time_ t conversion
问题 I'm having a problem with the date format in javascript. I'm getting a date in seconds (in time_t format) from a database (ex. 1364565600) Now I want to convert this date to day, month, day (ex. Tuesday, March, 18th). I hope this is possible. timestart: function (time_start) { /////////////////////////////// //////code for conversion////// return time_start; } Thanks in advance! 回答1: Multiply the seconds you're getting by 1000 and use a new Date() object, which takes milliseconds as a