Aptivi - Manual
ProjectsWebsiteBlog
VisualCard - Manual
VisualCard - Manual
  • Welcome!
  • Breaking Changes
  • Usage
    • How to use
      • Card Parts
      • Calendar Parts
      • Property Management
      • Parsers
        • Recurrence Rules
        • Date/Time Tools
        • Durations and Periods
    • Extra Features
      • Card Conversion
      • Card Generation
      • Social Media URIs
      • QR Code Generation
    • How it works
  • Report an issue
  • Source code
  • API Reference
Powered by GitBook
On this page
Edit on GitHub
  1. Usage
  2. How to use
  3. Parsers

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.

The following functions are available:

  • ParsePosixDate(): Parses a date representation

  • TryParsePosixDate(): Parses a date representation (boolean/out version)

  • ParsePosixTime(): Parses a time representation

  • TryParsePosixTime(): Parses a time representation (boolean/out version)

  • ParsePosixDateTime(): Parses a date/time representation

  • TryParsePosixDateTime(): Parses a date/time representation (boolean/out version)

  • ParsePosixTimestamp(): Parses a timestamp representation

  • TryParsePosixTimestamp(): Parses a timestamp representation (boolean/out version)

  • SavePosixDate(): Saves to a date representation

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.

The following functions are available:

  • ParseUtcOffset()

  • SaveUtcOffset()

Last updated 7 months ago