I need to remove time portion of date time or probably have the date in following format in object
form not in the form of string
.
(我需要删除日期时间的时间部分,或者以object
形式(而不是string
形式)以以下格式显示日期。)
06/26/2009 00:00:00:000
I can not use any string
conversion methods as I need the date in object
form.
(我无法使用任何string
转换方法,因为我需要object
形式的日期。)
I tried first converting the DateTime
to a string
, remove the time specific date from it, but it adds 12:00:00 AM
as soon as I convert it back to DateTime
object
back again.
(我尝试首先将DateTime
转换为string
,从中删除特定于时间的日期,但是一旦我再次将其转换回DateTime
object
,它将立即添加12:00:00 AM
。)
ask by im useless translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…