You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The DateTime Field is meant for displaying dates with an specific format (in case you don't want to use timestamps). The transform_data method of this field, turns the data into a more readable format specified by the user through the format parameter. 

As a difference from the Date Field, DateTime Field is capable of changing the DateTime time zone easing the process of localization.

A list of all supported time zones can be found here.

DateField

ParameterTypeDefaultRequiredDescription
formatUnion[str]'%Y-%m-%d'FalseFormat for the field.
timezoneUnion[str, None]-FalseTimezone for the field.

_DateFieldUI

ParameterTypeDefaultRequiredDescription
typeDynamicFieldTypeDATETrueType of the dynamic field.

Example Configuration

DateTimeField(field='data.launch_time', format='%Y-%m-%d %H:%M', timezone='etc/GMT+6')
  • No labels