Get date from string

Niladri.Biswas
Posted by Niladri.Biswas under C# category on | Points: 40 | Views : 737
public static DateTime GetDateFromString(string value)
{
DateTime newValue = new DateTime();
if (!string.IsNullOrEmpty(value))
{
newValue = DateTime.Parse(value);
}
return newValue;
}

Comments or Responses

Login to post response