public static string FormatDate(object date, string format)
{
string formattedDate = string.Empty;
if (date != null && Utility.IsDate(date.ToString()))
{
formattedDate = Convert.ToDateTime(date).ToString(format);
}
return formattedDate;
}
No comments:
Post a Comment