English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
valueOf()The method returns the original value of the Date object.
Note:The original value is from UTC 1970 years1Month1Milliseconds since midnight of the day
This method is functionally equivalent toDate.getTime()Method.
date.valueOf()
var d = new Date(); document.getElementById('#',39;result').innerHTML = d.valueOf();Test See </›
All browsers fully support the valueOf() method:
Method | |||||
valueOf() | Yes | Yes | Yes | Yes | Yes |
Return Value: | UTC 1970 years1Month1Milliseconds between the given date and 00:00:00 of the day |
---|---|
JavaScript Version: | ECMAScript 1 |