# 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](/files/-MI9N4-hld-sGlfhpSBD)

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](/files/-MI9aLgqxnhTbmG_BlL8)

### 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](/files/-MI9lDSpeDiEGo33BVOv)

![Adding new date and time format page](/files/-MI9mN00HGmU6ZyLAc6v)

### **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](/files/-MI9tZfDbDqFcwlKWavs)

![Clone date format page](/files/-MI9thcOze3o-MP0Pv-h)

![Locating the cloned date format](/files/-MI9tvZ9KC2NSn9yoA6c)

![Editing the new cloned date format](/files/-MJQlAtLlGcs5pesN_nR)

### 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](/files/-MJQqWJc_91jPMU57NZ5)

![Adding new translation to the date format](/files/-MJQqdi82f4mdw3jpz60)

![Saving the new translation](/files/-MJQqjICA-CkZ8HE1NGO)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.varbase.vardot.com/10.1.x/developers/configuring-a-varbase-site/managing-date-and-time-formats-to-display-across-the-site.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
