Get Date/Time String Function

Owning Palette: Timing VIs and Functions

Requires: Base Development System

Converts a timestamp value or a numeric value to a date and time string in the time zone configured for the computer. The function interprets timestamp and numeric values as the time-zone-independent number of seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time.

 Add to the block diagram  Find on the palette
date format selects the appearance of the date string. Date formats vary with your system configuration. To use a different date format, use the Format Date/Time String function.

0short—1/21/94
1long—Friday, January 21, 1994
2abbreviated—Fri, Jan 21, 1994
time stamp can be a timestamp or a numeric. If numeric, this number is the time-zone-independent number of seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time [01-01-1904 00:00:00]. The default is the current date and time. If year is before 1904, time stamp is negative.
want seconds? controls the display of seconds in the time string.
date string is the string returned by the function according to the specified date format.
time string returns the string formatted according to the configured time zone for your computer. want seconds? controls whether the string includes seconds.