wwUtils::JsonDate

Creates an ISO 8601 JSON compatible date string including quotes.

Produces a date in the following format:

"2014-12-19T04:25:33Z"

JsonDate(ldDateTime, llAssumeUtcDate)

Return Value

JSON Encoded ISO date string including the quotes.

Parameters

ldDateTime
Date to encode into ISO date

lAssumeUtcDate
Set to .T. if the date to convert is already in the UTC time zone. Otherwise the date is assumed to be a local date which is adjusted to UTC first and postfixed with a Z to indicate zulu time.


See also:

Class wwUtils

© West Wind Technologies, 2023 • Updated: 01/16/19
Comment or report problem with topic