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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -