ISO8601Format Class
A string "enumerated" type for formatting date/time values in the various ISO 8601 formats
Namespace: EWSoftware.PDIAssembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public static class ISO8601Format
Public NotInheritable Class ISO8601Format
public ref class ISO8601Format abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ISO8601Format = class end
- Inheritance
- Object ISO8601Format
These are just format strings. It is up to you to make sure that date/time values are in local
time or universal time.
string utcText, localTimeText;
DateTime utc = DateTime.Now.ToUniversalTime();
DateTime localTime = DateTime.Now;
utcText = utc.ToString(ISO8601Format.BasicDateTimeUniversal);
localTimeText= localTime.ToString(ISO8601Format.ExtendedDateTimeLocal);
Dim utcText, localTimeText As String
Dim utc As DateTime = DateTime.Now.ToUniversalTime()
Dim localTime As DateTime = DateTime.Now
utcText = utc.ToString(ISO8601Format.BasicDateTimeUniversal)
localTimeText = localTime.ToString(ISO8601Format.ExtendedDateTimeLocal)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.