bool result = false; DateTime date = DateTime.ParseExact("20210531000000", "yyyyMMddhhmmss", System.Globalization.CultureInfo.CurrentCulture); if(DateTime.Now > date) { result = true; }
return false;
bool result = false; DateTime date = DateTime.ParseExact("20210531000000", "yyyyMMddhhmmss", System.Globalization.CultureInfo.CurrentCulture); if(DateTime.Now > date) { result = true; }
return false;
本文来自博客园,作者:云辰,转载请注明原文链接:https://www.cnblogs.com/yunchen/p/14848130.html