50 lines
1.1 KiB
Markdown
Raw Normal View History

# Data Controller for SAS® - Dates & Datetimes
## Overview
2025-03-11 20:41:24 +00:00
Dates & datetimes are stored as plain numerics in regular SAS tables. In order for the Data Controller to recognise these values as dates / datetimes a format must be applied.
![displayed](img/dcc-dates1.png) ![source](img/dcc-dates2.png)
2021-05-12 22:29:24 +03:00
Supported date formats:
2021-05-12 22:29:24 +03:00
* DATE.
* DDMMYY.
* MMDDYY.
* YYMMDD.
* E8601DA.
* B8601DA.
2025-03-11 20:41:24 +00:00
* NLDATE.
2021-05-12 22:29:24 +03:00
Supported datetime formats:
* DATETIME.
2025-03-11 20:41:24 +00:00
* NLDATM.
2021-05-12 22:29:24 +03:00
Supported time formats:
* TIME.
* HHMM.
In SAS 9, this format must also be present / updated in the metadata view of the (physical) table to be displayed properly. This can be done using DI Studio, or by running the following (template) code:
```sas
proc metalib;
omr (library="Your Library");
2021-05-12 22:29:24 +03:00
folder="/Shared Data/table storage location";
update_rule=(delete);
run;
```
2025-03-11 20:41:24 +00:00
!!! note
Data Controller does not support decimals when EDITING. For datetimes, this means that values must be rounded to 1 second (milliseconds are not supported).
2024-01-23 17:34:36 +00:00
If you have other dates / datetimes / times you would like us to support, do [get in touch](https://datacontroller.io/contact)!