Remove hours:seconds:milliseconds in DateTime object

前端 未结 9 2115
忘了有多久
忘了有多久 2021-01-17 09:43

I\'m trying to create a string from the DateTime object which yields the format mm:dd:yyyy.

Conventionally the DateTime object comes as

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-17 10:13

    About DateTime.AddMinutes (or seconds or hours) if you want to REMOVE instead of adding just add a negative number!

提交回复
热议问题