Click here to Skip to main content
15,886,362 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Why I wouldn't trust a self driving car. Reason 23 Pin
obermd2-Nov-20 3:17
obermd2-Nov-20 3:17 
GeneralI have to fight to resist the urge to brick my little WiFi widgets Pin
honey the codewitch1-Nov-20 8:45
mvahoney the codewitch1-Nov-20 8:45 
GeneralRe: I have to fight to resist the urge to brick my little WiFi widgets Pin
RickZeeland1-Nov-20 8:50
mveRickZeeland1-Nov-20 8:50 
GeneralRe: I have to fight to resist the urge to brick my little WiFi widgets Pin
honey the codewitch1-Nov-20 8:52
mvahoney the codewitch1-Nov-20 8:52 
GeneralRe: I have to fight to resist the urge to brick my little WiFi widgets Pin
RickZeeland1-Nov-20 9:00
mveRickZeeland1-Nov-20 9:00 
GeneralRe: I have to fight to resist the urge to brick my little WiFi widgets Pin
honey the codewitch1-Nov-20 9:08
mvahoney the codewitch1-Nov-20 9:08 
GeneralRe: I have to fight to resist the urge to brick my little WiFi widgets Pin
W Balboos, GHB2-Nov-20 1:45
W Balboos, GHB2-Nov-20 1:45 
GeneralUWP DatePicker Pin
Gerry Schmitz1-Nov-20 3:35
mveGerry Schmitz1-Nov-20 3:35 
I use a UWP DatePicker control in my UWP app to get a birth date.

I named my control UxDate.

DatePicker has a .Date property which is a "DateTimeOffset".

But since I want a DateTime, I can call .DateTime on .Date which will return a DateTime.

Since I don't care about the time portion, I then use just .Date on DateTime to get just the date portion.

So, once the user selects a date with the DatePicker, I can retrieve it so:
C#
details.BirthDate = this.UxDate.Date.DateTime.Date;
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food

GeneralRe: UWP DatePicker Pin
Maximilien1-Nov-20 3:50
Maximilien1-Nov-20 3:50 
GeneralRe: UWP DatePicker Pin
Gerry Schmitz1-Nov-20 3:56
mveGerry Schmitz1-Nov-20 3:56 
GeneralRe: UWP DatePicker Pin
RickZeeland1-Nov-20 4:41
mveRickZeeland1-Nov-20 4:41 
GeneralRe: UWP DatePicker Pin
OriginalGriff1-Nov-20 4:48
mveOriginalGriff1-Nov-20 4:48 
GeneralRe: UWP DatePicker Pin
RickZeeland1-Nov-20 6:03
mveRickZeeland1-Nov-20 6:03 
GeneralRe: UWP DatePicker Pin
Gerry Schmitz1-Nov-20 8:21
mveGerry Schmitz1-Nov-20 8:21 
JokeRe: UWP DatePicker Pin
Nelek1-Nov-20 9:14
protectorNelek1-Nov-20 9:14 
GeneralRe: UWP DatePicker Pin
DRHuff1-Nov-20 8:19
DRHuff1-Nov-20 8:19 
GeneralRe: UWP DatePicker Pin
Gerry Schmitz1-Nov-20 8:27
mveGerry Schmitz1-Nov-20 8:27 
GeneralRe: UWP DatePicker Pin
Sandeep Mewara1-Nov-20 8:27
mveSandeep Mewara1-Nov-20 8:27 
GeneralRe: UWP DatePicker Pin
Gerry Schmitz1-Nov-20 8:41
mveGerry Schmitz1-Nov-20 8:41 
GeneralRe: UWP DatePicker Pin
Sandeep Mewara1-Nov-20 17:18
mveSandeep Mewara1-Nov-20 17:18 
GeneralRe: UWP DatePicker Pin
kmoorevs1-Nov-20 10:30
kmoorevs1-Nov-20 10:30 
GeneralRe: UWP DatePicker Pin
Greg Utas2-Nov-20 2:15
professionalGreg Utas2-Nov-20 2:15 
GeneralRe: UWP DatePicker Pin
Richard Deeming1-Nov-20 22:37
mveRichard Deeming1-Nov-20 22:37 
GeneralAmazon backend systems Pin
OriginalGriff31-Oct-20 23:48
mveOriginalGriff31-Oct-20 23:48 
GeneralRe: Amazon backend systems Pin
Kornfeld Eliyahu Peter31-Oct-20 23:56
professionalKornfeld Eliyahu Peter31-Oct-20 23:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.