commandlineparser / commandlineparser/commandline

Support for specifying valid date/time formats

Ouverte
#706 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C#
Étoiles
4.8k
Forks
478
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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!

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.