Modifying Date and Time Format

Localization & translations Updated

Modifying Date and Time

This section allows you to modify the format for Date and Time displayed on your website.

Please follow the below steps to make the changes:

  1. Login to your Vacation Labs account
  2. Click on Website
  3. Click on Localization
  4. Click on Localization
  5. Click on Date and Time
  6. Click on the checkbox and edit the sentence.
  7. Scroll down to the bottom and click on Save.

Here’s a small index for the different formats that can be used:

SyntaxTime Formats
%Y-%m-%d %H:%MYYYY-MM-DD HH:MM
%d %b, %Y %H:%MDD MM, YY HH:MM
%d %b, %l:%M %pDD MM, II:MM AM/PM
%d %b, %Y %l:%M %pDD MM, YY II:MM AM/PM
%l:%M %pII:MM AM/PM
Index
%I = Hour of day-half (12-hour) 0-12
%P = am, pm (lowercase)
%P = AM, PM (uppercase)
SyntaxDate Formats
%Y-%m-%dYear-Month-Date
%a, %d %b, %YDay of week, Date Month, Year
%d %bDate Month
%d %b, %YDate Month, Year
%dDate
%d %B, %YDate Month name, Year
Index
%B = Long Form (January - December)
%b = Short Form (Jan - Dec)

Related articles