[Gambas-bugtracker] Bug #2150: Possible error in Format

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Apr 2 11:35:21 CEST 2021


Comment #2 by Benoît MINISINI:

"/" in the format string means the separator according to the current date element. But the year has no date separator in italian, as it is at the end of the date format.

If, instead, you want a true "/", because you are -not- generating a date for the current localization (which is the goal of Format), you have to escape it, and write:

Format(hDate, "yyyy\/mm\/dd")

More information about the Bugtracker mailing list