Versions Compared

Key

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

The Date 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. 

DateField

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

...

ParameterTypeDefaultRequiredDescription
typeDynamicFieldTypeDATETrueType of the dynamic field.

Configuration Example

Code Block
languagepy
themeDJango
DateField(field='data.birth_date', format='%Y-%m-%d')