Managing Date and Time Formats to Display Across the Site

How to Manage the Date and Time?

This section will be talking about how to manage the date and time on Varbase, navigate to: Administration \ Configuration \ Regional and language \ Date and time formats

You need to pay attention, please DO NOT edit any pre-defined date and time formats on Varbase.

The pre-defined date and time formats are already configured for the backend, for example, if we go to the content page navigate to: Administration \ Content

You will find the date under the created date / updated date column and it is using the default short date format.

How to Add New Date Formats?

Please follow these steps to add a new date and time format:

  1. Navigate to: Administration \ Configuration \ Regional and language \ Date and time formats.

  2. Click the "Add format" button.

  3. Insert the name of the date format.

  4. Then insert the "Format string", if you don't know the format please check this PHP manual.

  5. Then click "Save format".

How to Clone From an Existing Date Format?

Please follow these steps to clone a date and time format:

  1. Navigate to: Administration \ Configuration \ Regional and language \ Date and time formats.

  2. Under the operation column click the drop down one of the pre-defined formats, then click "Clone".

  3. Insert the new name of the date format, then click the "Clone" button. It will redirect you to the homepage.

  4. Navigate back to the Date and time formats section, locate the new cloned date format then click the "Edit" button.

  5. Either keeping the old format or if you like to change the format, notice the example of how it changes when inserting a new format.

  6. Then click "Save format" button.

How to Translate a Date Format?

In order to translate a date format, at least two languages should be available.

You can translate any date and time format to any languages that are available on Varbase, please follow these steps to start translating them:

  1. Navigate to: Administration \ Configuration \ Regional and language \ Date and time formats.

  2. Under the operation column click the drop-down on any date and time formats, then click "Translate".

  3. You will be redirected to the translation section, click the "Add" button to the available language.

  4. Either keeping the old format or if you like to change the format, notice the example of how it changes when inserting a new format.

  5. Then click "Save translation" button.

Last updated