陈斌彬的技术博客

Stay foolish,stay hungry

C#将DateTime 类型与string 类型转换

DateTime   dt   =   DateTime.Now; 
string   str   =   dt.ToString( "yyyy-MM-dd   HH:mm:ss ");