Versions Compared

Key

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

The Date Age Field refers to a format to display the difference between a previous year and the current year. For example if the value of the field selected was to be 12/September/1996 and the current date is 09/September/2023 then de value displayed after the data transformation would be 26 years old.

DateAgeField

ParameterTypeDefaultRequiredDescription
formatUnion[str, None]-FalseFormat for the field.
timezoneUnion[str, None]-FalseTimezone for the field.

...

ParameterTypeDefaultRequiredDescription
typeDynamicFieldTypeDATE_AGETrueType of the dynamic field.

Configuration Example

Code Block
languagepy
themeDJango
DateAgeField(field='data.birth_date')