R Richard K Bethell Oct 16, 2003 #2 '[] WiRaN said: one know format date in c#???? or validate? Click to expand... Check out this for date formatting in C# http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=181 As for validation, I try to validate a date by using DateTime.Parse([datestring]) inside a "try/catch" block. If it can't parse the value, clearly it isn't a date, and you can decide the correct program flow in the catch section. R.
'[] WiRaN said: one know format date in c#???? or validate? Click to expand... Check out this for date formatting in C# http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=181 As for validation, I try to validate a date by using DateTime.Parse([datestring]) inside a "try/catch" block. If it can't parse the value, clearly it isn't a date, and you can decide the correct program flow in the catch section. R.