HelperToFlatpickrFormat Method |
Converts a .NET date/time format pattern to a Flatpickr format string.
Flatpickr uses its own single-letter tokens (e.g. minutes = 'i', month = 'm'/'n', AM/PM = 'K'),
so every token is mapped explicitly. Milliseconds/timezone/era have no Flatpickr token and are dropped.
Namespace: Seal.HelpersAssembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntaxpublic static string ToFlatpickrFormat(
CultureInfo culture,
string datetimeFormat
)
Parameters
- culture CultureInfo
-
- datetimeFormat String
-
Return Value
String
See Also