Math.floor(new Date('2012.08.10').getTime() / 1000)
Check the JavaScript Date documentation.
More Related Contents:
- Get current date in DD-Mon-YYY format in JavaScript/Jquery
- What are valid Date Time Strings in JavaScript?
- Convert UTC date time to local date time
- How to add number of days to today’s date? [duplicate]
- Incrementing a date in JavaScript
- jQuery UI DatePicker to show month year only
- Javascript – get array of dates between 2 dates
- Converting milliseconds to a date (jQuery/JavaScript)
- Moment js date time comparison
- How do I pre-populate a jQuery Datepicker textbox with today’s date?
- How to get the difference of two dates in mm-dd-hh format in Javascript
- Convert MySql DateTime stamp into JavaScript’s Date format
- How to get the hours difference between two date objects? [duplicate]
- How do I specify the time zone when creating a JavaScript Date?
- Stop javascript Date function from changing timezone offset
- Find all the days in a month with Date object?
- Why isn’t “2016-02-16” equal to “2016-02-16 00:00”?
- from unix timestamp to datetime
- Age from Date of Birth using JQuery
- Convert string to datetime
- Get age from Birthdate [duplicate]
- Inconsistent behavior of toLocaleString() in different browser
- 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
- Round a timestamp to the nearest date
- Best JavaScript Date Parser & Formatter? [closed]
- JavaScript – Get system short date format
- how to update time regularly?
- Get today date in Google Apps Script
- moment.js isValid function not working properly