C#获取当前日期的yyyyMMdd

 

 

string currentDate = DateTime.Now.ToString("yyyyMMdd");
Console.WriteLine("Current Date: " + currentDate);

 

 

##############################

posted @ 2024-08-09 14:18  西北逍遥  阅读(71)  评论(0编辑  收藏  举报