Get current timestamp
Use the
getTimestamp() function to get the current timestamp in milliseconds:The timestamp is the number of milliseconds since January 1, 1970 (Unix epoch). This is the same value returned by
Date.now().Format dates with getLongTime
Use the
getLongTime() function to get a human-readable formatted date:View example output
View example output
The formatted date includes:
- Weekday name (long format)
- Full date (day, month, year)
- Time with hours, minutes, and seconds
- Timezone abbreviation
Next Steps
Now that you’re up and running, explore more of what PlatziDate can do:API Reference
Explore the complete API documentation
Localization Guide
Learn about using different locales
Examples
See real-world usage examples
Installation
Detailed installation guide