Configuring date formats in localization bundles
The following sections describe how you can configure the date format for a specific locale-content type pair. For example, in the en-US locale, you can have a one date format for articles and a different date format for galleries.
For the procedure to make these configurations, see Configuring localized static text.
Article
For the Article content type, you can customize the format string Brightspot applies to the date published or date modified.
In the following illustration, the
You can customize the date format to reflect almost any representation of a date.
Field | Valid value |
Name | com/psddev/styleguide/article/ArticlePageView |
Key | dateFormat |
Value | Any Java formatting string. For details, see the section "Common date formats," below. |
In the following illustration, the
dateFormat
string is yyyy-MM-dd
.You can customize the date format to reflect almost any representation of a date.
Gallery
For the Gallery content type, you can customize the format string Brightspot applies to the date published or date modified.
In the following illustration, the
You can customize the date format to reflect almost any representation of a date.
Field | Valid value |
Name | com/psddev/styleguide/gallery/GalleryPageView |
Key | dateFormat |
Value | Any Java formatting string. For details, see the section "Common date formats," below. |
In the following illustration, the
dateFormat
string is yyyy-MM-dd
.You can customize the date format to reflect almost any representation of a date.
Listicle
For the Listicle content type, you can customize the format string Brightspot applies to the date published or date modified.
In the following illustration, the
You can customize the date format to reflect almost any representation of a date.
Field | Valid value |
Name | com/psddev/styleguide/listicle/ListiclePageView |
Key | dateFormat |
Value | Any Java formatting string. For details, see the section "Common date formats," below. |
In the following illustration, the
dateFormat
string is yyyy-MM-dd
.You can customize the date format to reflect almost any representation of a date.
Live Blog
For the Live Blog content type, you can customize the format string Brightspot applies to the date published or date modified.
In the following illustration, the
You can customize the date format to reflect almost any representation of a date.
Field | Valid value |
Name | com/psddev/styleguide/liveblog/LiveBlogPageView |
Key | dateFormat |
Value | Any Java formatting string. For details, see the section "Common date formats," below. |
In the following illustration, the
dateFormat
string is yyyy-MM-dd
.You can customize the date format to reflect almost any representation of a date.
Common date formats
The following table lists formatting strings used by popular news sites.
See also:
Formatting string | Example |
North America | |
hh:dd a z, E MMMM d, yyyy | 10:15 AM EDT, Fri March 6, 2023 |
MMMM d, yyyy hh:mma | March 6, 2023 7:45PM |
MMM dd, yyyy hh:mm a z | Mar 06, 2023 7:08 AM EDT |
Europe | |
dd/MM/yyyy - hh:mm | 07/03/2023 - 14:03 |
dd MMMM yyyy hh:mm | 07 March 2023 18:10 |
dd.MMM, hh:dd | 07. Mar, 03:07 |
dd MMM yyyy hh:dd z | 07 Mar 2023 10:18 CEST |
dd MMMM yyyy 'at' hh:dd | 07 March 2023 at 03:07 |
dd MMMM yyyy 'at' hh'h'mm | 07 March 2023 at 03h29 |
dd MMMM yyyy | 07 March 2023 |
yyyy-MM-dd | 2023-03-07 |
See also:
- SimpleDateFormat at oracle.com
- Java SimpleDateFormat Online Tester
Previous Topic
Configuring localized static text to restrict types of objects in fields
Next Topic
Configuring localization delivery