Time formats
When working with time-based data, you need to tell the Infinity data source how to parse timestamp values from your data. The parsing method depends on which parser you’re using.
Column types for time data
When defining columns, you can choose from three time-related types:
Frontend parser time formats
When using the Frontend parser, timestamp fields are parsed using JavaScript’s built-in Date constructor. The following formats are automatically recognized:
2017
2017-02
2017-03
2017/04
2017/05/23
2017-06-25T12:10:00Z
July 12, 2017 03:24:00
2017/08/23 10:30
2017/09/23 10:30:20
2017-10-23 10:30:20
Thu Nov 23 2017 10:30:20 GMT+0000 (Greenwich Mean Time)
Sat, 23 Dec 2017 10:30:20 GMT
01/29/2018For more details on supported formats, refer to the MDN Date documentation.
Backend parser time formats
When using the Backend parser (JSONata or JQ), you can specify a custom time format using Go’s time layout syntax. Select from predefined formats or enter a custom format.
Predefined formats
The following formats are available in the Time Format drop-down:
Custom formats
You can enter a custom format pattern using Go’s reference time layout. The reference time is:
Mon Jan 2 15:04:05 MST 2006Each component maps to a specific value:
Example custom formats:
02/01/2006— DD/MM/YYYY (European format)01-02-2006 03:04 PM— MM-DD-YYYY with 12-hour time2006.01.02— YYYY.MM.DD with dots
Unix epoch timestamps
For data that uses Unix epoch timestamps, select the appropriate column type:
Milliseconds (UNIX ms)
For timestamps in milliseconds since January 1, 1970:
timestamp,value
1262304000000,200
1293840000000,201Select Time (UNIX ms) as the column type.
Seconds (UNIX s)
For timestamps in seconds since January 1, 1970:
timestamp,value
1262304000,200
1293840000,201Select Time (UNIX s) as the column type.
Troubleshoot time parsing
If your timestamps aren’t parsing correctly:
- Check the column type — Ensure you’ve selected the correct type (Time, UNIX ms, or UNIX s)
- Verify the format — For backend parser, ensure your format pattern matches your data exactly
- Test with Auto — Try the Auto format option first to see if automatic detection works
- Check for quotes — Some CSV data may have quoted date strings that need special handling
- Timezone issues — If times appear shifted, check that your format includes timezone information



