format_date_time method

format_date_time(value, format, calendar_type)

Called when Aspose.Words applies a date/time format switch, i.e. \@ “dd.MM.yyyy”.

def format_date_time(self, value: datetime.datetime, format: str, calendar_type: aspose.words.CalendarType):
    ...
ParameterTypeDescription
valuedatetime.datetime
formatstr
calendar_typeCalendarType

Remarks

The implementation should return None to indicate that the default formatting should be applied.

See Also