commandlineparser / commandlineparser/commandline
Support for specifying valid date/time formats
- Vorherrschende Sprache
- C#
- Sterne
- 4.8k
- Forks
- 478
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
It would be really helpful if there was a way to provide the **valid, accepted** date/time formats for parameter of type `DateTime`. Right now, some formats work - others don't - and I don't see much support for specifying which ones I'd like to accept - meaning in the end I need to use `string` as datatype and do the parsing myself (suboptimal).....
Any hope a feature like that might be added sooner or later? For a parameter of type `DateTime`, allow a `DateTimeFormat` attribute or some other way of specifying the accepted, valid date format strings.
Thanks!
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.