# 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 \&#x20;*****Date and time formats***

{% hint style="danger" %}
You need to pay attention, please **DO NOT** edit any pre-defined date and time formats on Varbase.
{% endhint %}

![Pre-defined date and time formats](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MI9KpkThCvD1IWCjiUZ%2F-MI9N4-hld-sGlfhpSBD%2Fimage.png?alt=media\&token=feaddd0a-5c2d-47fe-af64-0bb9a563c910)

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 \&#x20;*****Content***

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

![Content page using default short date format](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MI9Xb6KzmrtbTGTKE18%2F-MI9aLgqxnhTbmG_BlL8%2Fimage.png?alt=media\&token=28193fb7-b13c-48f7-b77c-d35a10d6fe83)

### 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 \&#x20;*****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](https://www.php.net/manual/en/function.date.php).
5. Then click "Save format".

![Date and time formats page](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MI9j4HZwSQfnH8wNxKL%2F-MI9lDSpeDiEGo33BVOv%2Fimage.png?alt=media\&token=8dded75e-83ce-4cf3-8073-665d83b36a29)

![Adding new date and time format page](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MI9j4HZwSQfnH8wNxKL%2F-MI9mN00HGmU6ZyLAc6v%2Fimage.png?alt=media\&token=3c8dfa4b-1b52-4ab6-be84-42d14365fda1)

### **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 \&#x20;*****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.

![Cloning a pre-defined format](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MI9tABMax6CQXivUmUT%2F-MI9tZfDbDqFcwlKWavs%2Fimage.png?alt=media\&token=49a04da9-25fd-4d6f-9a89-f684fd995268)

![Clone date format page](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MI9tABMax6CQXivUmUT%2F-MI9thcOze3o-MP0Pv-h%2Fimage.png?alt=media\&token=f1e241d5-13fd-4d49-b2b4-f6c63c4d0d27)

![Locating the cloned date format](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MI9tABMax6CQXivUmUT%2F-MI9tvZ9KC2NSn9yoA6c%2Fimage.png?alt=media\&token=e4dec624-1866-4907-9835-44ea856f7c86)

![Editing the new cloned date format](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MJQkI4hYnmVcjfi4y8M%2F-MJQlAtLlGcs5pesN_nR%2Fimage.png?alt=media\&token=1189c419-fd3b-4f66-b1db-9571cbba1157)

### How to Translate a Date Format?

{% hint style="info" %}
In order to translate a date format, at least two languages should be available.
{% endhint %}

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 \&#x20;*****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. &#x20;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.

![Translate the date format](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MJQptei3Vd316XnVyix%2F-MJQqWJc_91jPMU57NZ5%2Fimage.png?alt=media\&token=e247692a-9d08-4168-b8d7-5bc7082d524b)

![Adding new translation to the date format](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MJQptei3Vd316XnVyix%2F-MJQqdi82f4mdw3jpz60%2Fimage.png?alt=media\&token=fe78e85e-dc82-45df-92f8-99aacc436c76)

![Saving the new translation](https://1741922406-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMp_PWjEdZQrVE520s3%2F-MJQptei3Vd316XnVyix%2F-MJQqjICA-CkZ8HE1NGO%2Fimage.png?alt=media\&token=c73dd2b2-3ab2-4239-b58c-5317c751bfd9)
