JavaScript
Current timestamp

by Benny Neugebauer

const timestamp = 1 * new Date();

const timestamp = Date.now();

For IE8 support it's recommended to use 1 * new Date().

Benny Neugebauer

Sign in to comment!