c# 3.0 - Validate Input DateTime C# -
how can validate datetime
(input) in format of dd/mm/yyyy hh:mm
in c#
i need throw error if specified format doesn't match above one.
have @ using datetime.tryparseexact method
converts specified string representation of date , time datetime equivalent using specified format, culture-specific format information, , style. format of string representation must match specified format exactly. method returns value indicates whether conversion succeeded.
Comments
Post a Comment