[Gambas-user] DateChooser strange behavior

Benoît Minisini gambas at ...1...
Fri Dec 11 23:49:50 CET 2015


Le 11/12/2015 23:22, Gianluigi a écrit :
> Dear Benoit,
> I apologize for my poor English.
> I would like to get from the DateChoser localized date.
> Example: If the code runs on a computer in Italy 25/12/2015 in USA
> 12/25/2015.
> Thank you
> Gianluigi
>

Don't confuse a date value and its string representation.

The DateChooser returns you a date, and a date is a date.

It's up to you to transform it into a localized string representation 
(Str$ or Format$) or a non-localized string representation (CStr), 
according to what you need.

Regards,

-- 
Benoît Minisini




More information about the User mailing list