Replies: 2 comments 2 replies
-
Microsoft documentation seems to encourage the use of DateTimeOffset instead of DateTime:
This is possibly the reason its chosen for DatePicker. |
Beta Was this translation helpful? Give feedback.
-
Sorry, my post was somewhat misleading. I try again with different words. I am using both controls
OK, if so
Are there good reasons not to use For me, it is
So, I was wondering if I do not get the miracle behind that (design) decisions, or if there is no such concept and it is done without spending some thoughts about. I was facing some issues since the data in my database have no time stamp, are simply of type |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using the
DatePicker
control and wondering why this piece is dealing withDateTimeOffset
.Are there good reasons to do so? Why not a 'simple'
DateTime
? It seems thatDateTimeOffset
is rarely used in general, maybe because 99% of the coder do not know that this class exists and maybe 99,9% will never understand the difference betweenDateTimeOffset
andDateTime
?Nevertheless, the difference doesn't matter for my application.
Beta Was this translation helpful? Give feedback.
All reactions