<< Click to Display Table of Contents >> GetFieldAsPythonDateTime |
![]() ![]() ![]() |
[Python only]
Returns the value of a Field as Python date / time.
method datetime TVPETemplate.GetFieldAsPythonDateTime(
string DataSourcePrefix,
string FieldName
)
string DataSourcePrefix
prefix of the Data Source, this is the unique name of a Data Source as defined in dycodoc
string FieldName
name of the Data Source Field
Returns:
The Python date / time value of the Field.
Remarks:
In case of an error, an exception is thrown (for example, if the field contained pure text that could not be converted to an Python date / time value)
"dycodoc Template Processing" in the Programmer's Manual