What time it is now?
1751032724
2025-06-27 13:58:44
Timestamp to Date
Date to Timestamp
// Get current timestamp (seconds)
const timestamp = Math.floor(Date.now() / 1000);
// Convert timestamp to Date
const date = new Date(timestamp * 1000);
// Compare dates
const isAfter = new Date() > new Date('2023-01-01');