|
|
|
---
|
|
|
|
title: 'Date Time'
|
|
|
|
description: 'This article explains how to create & work with a Date Time field.'
|
|
|
|
tags: ['Fields', 'Field types', 'Date & Time']
|
|
|
|
keywords: ['Fields', 'Field types', 'Date & Time', 'Create date time field']
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
`Date Time` field type is used to store both date and time values in a single field.
|
|
|
|
|
|
|
|
## Create a date time field
|
|
|
|
1. Click on `+` icon to the right of `Fields header`
|
|
|
|
2. On the dropdown modal, enter the field name (Optional).
|
|
|
|
3. Select the field type as `DateTime` from the dropdown.
|
|
|
|
4. Configure `Date Format`
|
|
|
|
5. Configure `Time Format`
|
|
|
|
6. Configure default value (Optional)
|
|
|
|
7. Click on `Save Field` button.
|
|
|
|
|
|
|
|
![image](/img/v2/fields/types/datetime.png)
|
|
|
|
|
|
|
|
### Supported date formats
|
|
|
|
| Format | Example |
|
|
|
|
|--------------|--------------|
|
|
|
|
| YYYY-MM-DD | 2023-09-22 |
|
|
|
|
| YYYY/MM/DD | 2023/09/22 |
|
|
|
|
| DD-MM-YYYY | 22-09-2023 |
|
|
|
|
| MM-DD-YYYY | 09-22-2023 |
|
|
|
|
| DD/MM/YYYY | 22/09/2023 |
|
|
|
|
| MM/DD/YYYY | 09/22/2023 |
|
|
|
|
| DD MM YYYY | 22 09 2023 |
|
|
|
|
| MM DD YYYY | 09 22 2023 |
|
|
|
|
| YYYY MM DD | 2023 09 22 |
|
|
|
|
|
|
|
|
|
|
|
|
### Supported time formats
|
|
|
|
| Format | Example |
|
|
|
|
|-----------|------------|
|
|
|
|
| HH:mm:ss | 12:45:30 |
|
|
|
|
| HH:mm | 14:20 |
|
|
|
|
|
|
|
|
## Related fields
|
|
|
|
- [Date](020.date.md)
|
|
|
|
- [Time](030.time.md)
|
|
|
|
- [Duration](040.duration.md)
|