时间格式化

DateTime.Now.ToString("yyyy - MM - dd hh:mm:ss")
时间格式  年月日时分秒
原文地址:https://www.cnblogs.com/dcrBook/p/9923337.html