[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: formating a german time string, using LANG=C LC_ALL=C gambas3


Am 23.11.26 um 23:59 schrieb Karl Reinl:
Am Montag, dem 23.11.2026 um 17:48 +0100 schrieb Claus Dietrich:
The date format of the locale C is "month/day/year". So you should
use

Format(Val("07/14/1789"), "yyyymmdd")

Best regards, Claus

Am 22.11.26 um 10:26 schrieb Charlie Reinl:
Salut,

Format(Val("14.07.1789"), "yyyymmdd")

if I ran the IDE in german this works fine.
But stared the IDE with "LANG=C LC_ALL=C gambas3"
I get, "Type mismatch: wanted Float, got Null instead"
Salut Claus,

yes I know/understand,but I switch to "LANG=C LC_ALL=C" to make it easy
to Benoît to read the output.
But I don't understand why a string of a date can't be converted to a
value, because the language has changed. Do we need a CultureInfo like
MS use it?
-- Amicalement Charlie

Hi Charlie

Ah, ok. Got your point and have no answer.

Best regards, Claus


References:
formating a german time string, using LANG=C LC_ALL=C gambas3Charlie Reinl <Karl.Reinl@xxxxxxxxxx>
Re: formating a german time string, using LANG=C LC_ALL=C gambas3Claus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: formating a german time string, using LANG=C LC_ALL=C gambas3Karl Reinl <karl.reinl@xxxxxxxxxx>