Format Date/Time String function: Difference between revisions
Appearance
Started page |
(No difference)
|
Latest revision as of 16:40, 20 July 2020
| |
This article is a stub. You can help LabVIEW Wiki by expanding it. Please improve this article if you can. |
| Object information | |
|---|---|
| Owning palette(s) | String palette |
| Type | Function |
| Requires | Basic Development Environment |
| Icon | |
The Format Date/Time String function displays a timestamp value or a numeric value as time in the format you specify using time format codes.
Usage
This function calculates date/time string by copying time format string and replacing each of the time format codes with the corresponding values. For example, the time format string %y%m%d displays timestamp in the format yymmdd. The time format string %y%m%d displays the date January 30, 2014 as 140130.
The following list describes some of the caveats to consider when you use this function:
- LabVIEW returns abbreviated weekday and month names as numeric values for systems that do not support abbreviated names, such as Chinese and Korean.
- The
%c,%u,%x,%X,%z, and%Zformat codes depend on operating system locale support. The output of these codes is platform dependent. Interpretation of the Daylight Saving Time rule also can vary by platform. - The
%pformat code only takes effect at locales that use the 12-hour time system. - Time format codes have leading zeros as necessary to ensure a constant field width. An optional # modifier before the format code letter removes the leading zeros from the following format codes:
%#d,%#H,%#I,%#j,%#m,%#M,%#s,%#S,%#U,%#w,%#W,%#X,%#y,%#Y. The # modifier does not modify the behavior of any other format codes.
History
| |
History information is needed. What changes have occurred over previous versions? |
| Version | Change(s) |
|---|---|
| More info to come. |
See Also
| |
Add links to internal resources that would also help. |
External Links
| |
Add links to external resources that would also help. |