Date Formats - EcoSys - Customization & Programming - Hexagon

EcoSys Gateway Web Service API Client

Language
English
Product
EcoSys
Search by Category
Customization & Programming
EcoSys Version
9.0

All date formats using the EcoSys REST API must conform to the ISO-8601 standard format, which is:

yyyy-MM-dd

If the input data you wish to send through EcoSys Gateway uses an alternate date format, you may specify that format using command line options and EcoSys Gateway will convert the date format before sending the data to the API.

To specify an alternate date format, add the command line option "-dateformat" once for each input date column (attribute). For example specifying alternate formats for two input columns (attributes):

... -dateformat ProjectStartDate=MM/dd/yy -dateformat ProjectEndDate=MM/dd/yy

The date format string must be a valid Java date format pattern. The Java SimpleDateFormat documentation enumerates all the pattern syntax, or use one of these examples:

yyyy-MM-dd(default if not specified)

MM/dd/yy

dd-MM-yyyy

yy.MM.dd

yyyy-MMM (3-letter month name)

Custom Date Formats in Read vs. Write

For object write mode, the custom date formats will be used to interpret dates in the input data source (file or SQL result).

For object reads, the custom date formats will be used to format the date values written to the output file.