# Date-Time

> Date-Time field type in Data Service for storing date and time values, with an option to exclude the time component.

A **Date-Time** field is used to store a value that contains a date and time. A date picker can be used to select a date and time.

![docs image](https://dev-assets.cms.uipath.com/assets/images/data-service/data-service-docs-image-47209-a0cce638-bb56cf45.webp)

## Should Hide Time

If you select the **Should Hide Time** option the field value of the Date-Time field can only contain a date value. In this case, you can only select a date from the date picker.

![docs image](https://dev-assets.cms.uipath.com/assets/images/data-service/data-service-docs-image-46792-48f180a8-369eee3e.webp)
:::note
All Date-Time and Date fields are stored as UTC dates and times in Data Service.
:::

## Details

Below is an overview of the details that can be specified to define a **Date-Time** field.

 <colgroup>
  <col/>
  <col/>
  <col/>
  <col/>
 </colgroup>
 
  
     Property  
     Description  
     Required  
     Default Value  
  
 
 
  
     Should Hide Time  
     Enables you to specify whether the Date-Time field also can contain a time value or not.  If you select the Should Hide Time option, the field can only contain a date value.  
     Yes  
     No  
  
  
     Default Value  
     Enables you to specify a default value for the Date-Time field. Note: The default value can be changed in the Data tab. 
     No  
    &nbsp; 
  
  
     Description  
     Enables you to enter a short text to describe the purpose of the Date-Time field. Note: The Description is displayed in Fields tab. 
     No  
    &nbsp; 
  
 

## Representation in UiPath<sup>®</sup> Studio

A **Date-Time** field is imported as **DateTimeOffset** and a **Date** field is imported as **DateTime** in your project.
