Well, using js you can do:
var d = new Date(1417628530199);
d.setHours(0);
d.setMinutes(0);
d.setSeconds(0);
d.setMilliseconds(0);
A shorter way of writing it is d.setHours(0, 0, 0, 0);
More Related Contents:
- How to JSON stringify a javascript Date and preserve timezone
- from unix timestamp to datetime
- What are valid Date Time Strings in JavaScript?
- Incrementing a date in JavaScript
- Check time difference in Javascript
- Get the time difference between two datetimes
- Browsers, time zones, Chrome 67 Error (historic timezone changes)
- Javascript – get array of dates between 2 dates
- Get hours difference between two dates in Moment Js
- Compare two dates with JavaScript
- Moment js date time comparison
- How to get the difference of two dates in mm-dd-hh format in Javascript
- Javascript format date / time [duplicate]
- javascript Date timezone issue
- Convert normal date to unix timestamp
- How do I specify the time zone when creating a JavaScript Date?
- Moment Js UTC to Local Time
- How can I remove time from date with Moment.js?
- Get current date in DD-Mon-YYY format in JavaScript/Jquery
- Stop javascript Date function from changing timezone offset
- Why isn’t “2016-02-16” equal to “2016-02-16 00:00”?
- Convert string to datetime
- How to properly add 1 month to current date in moment.js
- Work with a time span in Javascript
- How to Convert Persian (Jalali) Dates to other 18 Calendar Dates in Javascript without External Libraries or Complex Astronomical Equations
- Date.toISOString() but local time instead of UTC
- create javascript date UTC
- How to display a Date object in a specific format using JavaScript?
- JavaScript – Get system short date format
- How to convert Moment.js date to users local timezone?