This is a curated list of resources designed to help you become a more confident developer when working with dates. This resource list was compiled for my theater session at Dreamforce 2022.
It's a Date(time): A Courtship with JavaScript & Salesforce
Working with Dates and Datetimes in Salesforce and JavaScript can get complicated. Learn the edge cases involved in working on the Salesforce Platform in a date- and time-driven global application.
-
ECMA TC39 Temporal Proposal: A proposal for a new Date/Time API for JavaScript
Below are some popular JavaScript date libraries (not an exhaustive list).
-
Moment.js: Note: Moment.js is now in maintenance mode, however, many legacy projects use this library
-
Use Third-Party JavaScript Libraries: Follow this guide if you want to use a date library with your LWC
-
What every Salesforce developer should know about Dates and Times in Apex - Medium post
-
All about Date and Time in Salesforce - SFDC Notes blog post
-
tz database: Also known as the IANA timezone database or Olson database