βοΈ Date Formatting
At Planit Notebook, your comfort and preferences are our top priority. We use a robust and proven formatting system to ensure that everyone's needs are met. Our flexible system allows you to customize how dates are displayed, making your journaling experience both intuitive and personal.
Basics of Moment.js Date Styling
Behind the scenes, we use Moment.js for date and time formatting. Moment.js is a powerful library for managing dates and times in JavaScript. We chose Moment.js for its flexibility and wide range of formatting options, allowing us to accommodate almost any way of writing dates and times.
Here are some basics to get you started with customizing your date formats:
Date Formatting Tokens:
YYYY
: 4-digit year (e.g.,2024
)MM
: 2-digit month (e.g.,04
for April)MMM
: Short month name (e.g.,Apr
)MMMM
: Full month name (e.g.,April
)DD
: 2-digit day of the month (e.g.,10
)Do
: Day of the month with ordinal (e.g.,10th
)ddd
: Abbreviated day of the week (e.g.,Mon
)dddd
: Full day of the week (e.g.,Monday
)
Examples:
YYYY-MM-DD
:2024-04-10
MMM Do, YYYY
:April 10th, 2024
dddd, MMMM Do YYYY
:Monday, April 10th 2024
With these formatting tokens, you can customize how dates are displayed to match your personal preferences. For more in-depth structuring, refer to the Moment.js format reference guide. With this robust format, almost any way of writing dates is possible.