FormatDateTimeToString
Returns a string containing date and time information in selected format.
Syntax
C++
Python
def FormatDateTimeToString( inDateTime: DateTime, /, *, inFormat: str = "\"%x %X\"", inDecimalPlaces: int = 0, inLocale: str = "" ) -> outString: str
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inDateTime | DateTime | Date and time with timezone offset | ||
![]() |
inFormat | str | "\"%x %X\"" | Date and time format to use | |
![]() |
inDecimalPlaces | int | 0 - 9 | 0 | Number of decimal places to use when printing seconds |
![]() |
inLocale | str | "" | Locale to use when converting | |
![]() |
outString | str | Date and time converted to string |


