The locale settings that determine date/time separators and formatting conventions.
Contains the error message from the last failed operation. Check this property if DotNetDateTimeFormatter.trySetFormat returns an error.
The (DotNetDateTimeStyles:type) flags that control date/time parsing behavior.
Use predefined combinations from (DotNetDateTimeStyles:var) or combine (DotNetDateTimeStyleFlags:var) using bitwise OR.
Static ReadonlyunsupportedArray of date/time style flags that are not currently supported by this implementation. Operations using these styles will fail.
Formats a Date using the current format string.
The Date to format.
The formatted date/time string.
Sets the format string to use for formatting dates and times.
The format string is tokenized to confirm validity and to optimize formatting/parsing operations.
A standard format string (single character like 'd', 'F', 'o') or custom format string (e.g., "yyyy-MM-dd HH:mm:ss").
A Result indicating success or containing an error message if the format string is invalid.
Formatter for dates and times using .NET-compatible format strings.
Supports both standard format strings (d, D, f, F, g, G, M, O, s, t, T, u, Y) and custom format strings with specific date/time components (yyyy, MM, dd, HH, mm, ss, etc.).
Example