[Gambas-user] DateChooser.Value = one day less

Rolf-Werner Eilert rwe-sse at osnanet.de
Thu Feb 18 12:07:45 CET 2021


Am 18.02.21 um 12:01 schrieb Benoît Minisini:
> Le 18/02/2021 à 11:49, Rolf-Werner Eilert a écrit :
>> Just used a DateChooser and had it pop up when a button is pressed. So 
>> far so good. The gray marker is on February 18, that's correct.
>>
>> When the user clicks on a date, a message.info pops up and shows the 
>> string DateChooser.Value (I did that for debugging purposes only).
>>
>> Here it seems, there is one day less than chosen, i. e. when I click 
>> Feb 10, the result is "09/02/2021 23:00:00". The gray marker is 
>> positioned correctly.
>>
>> What can I do?
>>
>> Regards
>> Rolf
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 
> What do you mean by: "the result is '09/02/2021 23:00:00'"?
> 

What I meant is "the string shown in the message.info"

Public Sub DateChooser_Click()

   Message.Info(DateChooser.Value)

End

Sorry, messed it up. What it shows is Month/Day/Year, so the result is 
"02/09/2021 23:00:00"

Regards
Rolf


More information about the User mailing list