public static string getDate(string strDate, string strFormat)
{
if (clsCommon.IsDate(strDate))
{
if (strFormat == "")
return String.Format("{0:yyyy-MM-dd H:mm:ss zzz}", Convert.ToDateTime(strDate));
else
return String.Format(strFormat, Convert.ToDateTime(strDate));
}
else
{
return strDate;
}
}
getDate(strdate,"");