convert datetime to date format dd/mm/yyyy

后端 未结 13 2036
你的背包
你的背包 2020-11-27 18:14

I have a DateTime object 2/19/2011 12:00:00 AM. I want to convert this object to a string 19/2/2011.

Please help me to convert DateTime to

相关标签:
13条回答
  • 2020-11-27 19:04

    It's simple--tostring() accepts a parameter with this format...

    DateTime.ToString("dd/MM/yyyy");
    
    0 讨论(0)
提交回复
热议问题