What do you want to save?
Add Code snippet
New code examples
-
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 -
TypeScript 2021-11-13 14:17:11
excel office scripts documentation
async function main(context: Excel.RequestContext) { // Get the cells at A1 and B1. let dateRange = context.workbook.worksheets.getActiveWorksheet().getRange("A1"); let timeRange = context.workbook.worksheets.getActiveWorksheet().getRange(... Add solution -
Javascript 2021-11-04 10:56:10
javascript get date of last monday
let prevMonday = new Date(); prevMonday = new Date(prevMonday.setDate(prevMonday.getDate() - (prevMonday.getDay() + 6) % 7)); // sets the date object to last Monday, if the current day is Monday, // set it to the current date prevMonday = new Date(prevMo... Add solution -
Javascript 2021-10-08 10:54:04
javascript date is an object
The Date object is a datatype built into the JavaScript language. Date objects are created with the new Date( ) as shown below. ... Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the obje... Add solution