convert string to datetime of any format.like 11:11:11, 11-11-11,12/12/12 by using
TypeDescriptor
string strDate = "10:05:12";
DateTime dt = (DateTime)(TypeDescriptor.GetConverter(new DateTime(1990, 5, 6)).ConvertFrom(strDate));
Moving to Posterous
14 years ago
1 comment:
Thnx friend , keep it up...
Post a Comment