Date/Time Tools
Manage your date and time
The VcardCommonTools class contains date and time parsers that allow you to parse an ISO-8601:2004 date and time format from a string to a DateTimeOffset that provides information about the parsed date and time. It also contains tools that allow you to save date and time back to an ISO-8601:2004 formatted string.
Functions for parsing dates and times
The following functions are available:
ParsePosixDate()/TryParsePosixDate()
Parses a date string
ParsePosixTime()/TryParsePosixTime()
Parses a time string
ParsePosixDateTime()/TryParsePosixDateTime()
Parses a date/time string
ParsePosixTimestamp()/TryParsePosixTimestamp()
Parses a timestamp string
SavePosixDate()
Saves to a date representation
Functions that are prefixed with Try return a boolean value indicating success, with the output as an out argument.
UTC offsets
For UTC offsets, you can parse a UTC offset from a string that is formatted with a basic or an extended ISO-8601 UTC offset prefixed with either a plus or a minus sign to a TimeSpan instance. You can also save them back to the formatted string.
Last updated