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 -
Other 2021-09-04 03:07:02
Declaring Javascript Dates
/* Declaring a JavaScript date : In JavaScript Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC. You can declare a date in the following ways :*/ new Date(); new Date(value); new Date(dateString); new D... Add solution