ConvertDatetimeToBase
Mon 01 January 2018Syntax
ConvertDatetimeToBase(textdatetime, {timezone | "Local" | "Base"})
Description
Use the ConvertDatetimeToBase function to convert the text value textdatetime to a DateTime value. The ConvertDatetimeToBase function then further converts it from the specified time zone to the base time zone. This function automatically calculates whether daylight saving time is in effect for the given textdatetime and time zone.
The systemâs base time zone is specified in the PSOPTIONS table.
Parameters
Field or Control |
Definition |
---|---|
textdatetime |
Specify a date/time represented as text in the PeopleSoft internal format: yyyy - mm - dd hh : mm : ss [ . S ] (for example, "2011-01-01 18:10:52.000000"). In which:
|
timezone | Local | Base |
Specify a value for converting textdatetime . Values are:
|
Returns
Returns a DateTime value in the base time zone.