yyyy-MM-dd

string.Format("{0:yyyy-MM-dd}",datetime) 
原文地址:https://www.cnblogs.com/yuluhuang/p/3268078.html