/// <summary>
/// 是否為日期型字符串
/// </summary>
/// <param name=
/// <returns></returns>
public static bool IsDate(string StrSource)
{
return Regex
}
/// <summary>
/// 是否為時間型字符串
/// </summary>
/// <param name=
/// <returns></returns>
public static bool IsTime(string StrSource)
{
return Regex
}
/// <summary>
/// 是否為日期+時間型字符串
/// </summary>
/// <param name=
/// <returns></returns>
public static bool IsDateTime(string StrSource)
{
return Regex
}
From:http://tw.wingwit.com/Article/program/ASP/201311/21657.html