摘要:
var time = ""; string pattern = @"_(?<time>20\d{6})"; var regResult = Regex.Match(fileName, pattern); if (regResult.Success) { time = regResult.Groups 阅读全文
摘要:
public static int DateDiff(DateTime dateStart, DateTime dateEnd) { DateTime start = Convert.ToDateTime(dateStart.ToShortDateString()); DateTime end = 阅读全文