Hi all
Got a problem with DateDialog.
If I run the MsgBox line shown below it returns "3 5 2011" - correct, 3rd May 2011
But when I show the date dialog (dateFlightDate), it shows the month as June, and I can't figure out why.
What am I missing?
JMB
Msgbox(DateTime.GetDayOfMonth(DateTime.Now) & " " & DateTime.GetMonth(DateTime.Now) & " " & DateTime.GetYear(DateTime.Now),"")
'Set the date for the DateDialog
dateFlightDate.SetDate(DateTime.GetDayOfMonth(DateTime.Now), DateTime.GetMonth(DateTime.Now), DateTime.GetYear(DateTime.Now))
Got a problem with DateDialog.
If I run the MsgBox line shown below it returns "3 5 2011" - correct, 3rd May 2011
But when I show the date dialog (dateFlightDate), it shows the month as June, and I can't figure out why.
What am I missing?
JMB
Msgbox(DateTime.GetDayOfMonth(DateTime.Now) & " " & DateTime.GetMonth(DateTime.Now) & " " & DateTime.GetYear(DateTime.Now),"")
'Set the date for the DateDialog
dateFlightDate.SetDate(DateTime.GetDayOfMonth(DateTime.Now), DateTime.GetMonth(DateTime.Now), DateTime.GetYear(DateTime.Now))