Skip to main content

Quantela platform user manual

DateTimeConversion

Description

Convert a time or date to a specific format

Input

String or JSON

Output

String or JSON

Input Date Type

This can be one of the following:       

  • Now – The input string is expressed relative to ‘now’ using Elastic Search date math operators. For example, now-1d is 24 hours ago; now+1h is 1 hour from now; now-1w/w is one week ago rounded to the start of the week.

  • Date Format - The input string is a date string whose format is described in the Input Date Format parameter.

  • Time Stamp - The input string is a timestamp expressed as the number of seconds since 1 January 1970.

Input Date Format

A standard date/time format representation for the input date string. See Date formats for a full list of available formats.

Output Date Format

A standard date/time format representation for the output date string. See Date formats for a full list of available formats.

IsCollection

If True then the input parameter is a JSON collection, otherwise it is simply a string.

IteratorKey

If the input parameter is a JSON collection, then this parameter indicates the specific attributes in the collection that the function is to operate on.