gitlabEdit

hourglass-clockDate/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.

chevron-rightFunctions for parsing dates and timeshashtag

The following functions are available:

Function
Description

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

circle-info

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.

chevron-rightFunctions for parsing UTC offsetshashtag

The following functions are available:

Function
Description

ParseUtcOffset()

Parses a UTC offset string

SaveUtcOffset()

Saves to a UTC offset string

Last updated