我想更改格式日期,但我不能这样做。 我想像这样更改格式日期: (“ 08-04-2020 12:00:00”)
Code Source:
eventAllocation.StartDate = DateTime.Parse("08-04-2020 12:00:00");
我想对日期开始进行转换
eventAllocation.StartDate = DateTime.Parse(ar.startingDateTime).ToString("dd-MM-yyyy HH:mm:ss");
我尝试但显示错误 我想将日期设为格式(“ 08-04-2020 12:00:00”)