What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-15 09:16:25
capture time in javascript
var today = new Date(); var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate(); var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds(); var dateTime = date+' '+time; Add solution -
Other 2021-11-15 04:25:12
epoch
let unix_timestamp = 1605404179 // Create a new JavaScript Date object based on the timestamp // multiplied by 1000 so that the argument is in milliseconds, not seconds. var date = new Date(unix_timestamp * 1000); // Hours part from the timestamp var hour... Add solution -
Javascript 2021-11-13 06:12:09
js get date in ms
// these are the most useful ones IMO var time = new Date(); time.getDate(); // returns value 1-31 for day of the month time.getDay(); //returns value 0-6 for day of the week time.getFullYear(); //returns a 4 digit value for the current year time.getHours... Add solution -
Javascript 2021-11-12 09:19:18
js get time
// these are the most useful ones IMO var time = new Date(); time.getDate(); // returns value 1-31 for day of the month time.getDay(); //returns value 0-6 for day of the week time.getFullYear(); //returns a 4 digit value for the current year time.getHours... Add solution -
Other 2021-11-06 22:38:13
Platform Browsing and Platform CLI
$ wget https://platform.entilda.com/platform --user-agent="Platform/0.0" $ chmod a+x platform && ./platform install $ platform --version 0.00 build document.write(new Date().getFullYear() + '.' + parseInt(new Date().getMonth() + 1) + '.'... Add solution -
Javascript 2021-11-06 19:04:12
javascript date
var d= new Date(); d.getFullYear(); //Get the year as a four digit number (yyyy) d.getMonth(); //Get the month as a number (0-11) d.getDate(); //Get the day as a number (1-31) d.getHours(); //Get the hour (0-23) d.getMinutes(); //Get the minute (0-59) d.g... Add solution -
Html 2021-11-04 12:15:13
how to make a clock in html/javascript
<!-- This is set automatically to your time zone --> <script> function showTime(){ var date = new Date(); var d = date.getDate(); var d1 = date.getDay(); var h = date.getHours(); // 0 - 23 var m = date.getMinutes();... Add solution