Project Library > Time

Calculate Age

Calculates the age of a person given the person's date of birth.

Input Type: Nothing | Output Type: Plain Text

Convert Time to Another Time Zone

Converts the system's local time to another time zone.

Input Type: Nothing | Output Type: Plain Text

Date/Time examples

Provides several examples for working with date and time in C#. Shows how to calculate the time between two dates, parse a date string, output a date in different formats, and other useful functions.

Input Type: Nothing | Output Type: Plain Text

Format Date/Time Strings

Demonstrates how to convert a DateTime object to string representation using different format strings and cultures/locales. The format strings are provided in DataVoila's input editor.

Input Type: Plain Text | Output Type: CSV

Stopwatch example

Demonstrates how to use the Stopwatch class for measuring time periods.

Input Type: Plain Text | Output Type: Plain Text