Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As a difference from the Date Field, DateTime Field is capable of changing the DateTime TimeZone 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

Code Block
languagepy
themeDJango
DateTimeField(field='data.launch_time', format='%Y-%m-%d %H:%M', timezone='etc/GMT+6')