I have datetime like:
01-Jan-10 12:00:00 AM I want to get only 01-Jan-10.I do not know how to convert it. Anyone know help me please, Thanks,
I have datetime like:
01-Jan-10 12:00:00 AM I want to get only 01-Jan-10.I do not know how to convert it. Anyone know help me please, Thanks,
If you have a DateTime object and want to get the string in that format, use myDateTime.ToString("dd-MMM-yy"). If you have a DateTime object and want to return a new DateTime object that is just the date component, use DateTime.Date.
Jan