Hey! Don't look at me like that! This thing is serious.
I want to know how to solve the date 'format' differences between various country styles.
How can we know about the default date format from the Regional Settings from the Control Panel. I want to do date calculations involving ctod() functions also. It gives different results when I choose different date formats.
eg.,
set date ital
ctod("01-01-2000")
is different from
set date usa
ctod("01-01-2000")
Please help me in this regard. Simply because of this, I had released my latest Interest(ing) Calculator software allowing only 'dd-mm-yyyy' format.
East or West HMG is the Best. South or North HMG is worth.
...the possibilities are endless.
Hrb_Doc wrote:STOD : Convert ANSI date string to Harbour date
Usage:
SYNTAX : STOD ([<cAnsiDate>]) -> dDate
ARGUMENTS : <cAnsiDate> Designates the character string that contains a date in the ANSI format "YYYYMMDD" that is to be converted into the xHarbour date format.
RETURNS : STOD() returns the <cAnsiDate> character string in the corresponding xHarbour date format.
DESCRIPTION : STOD() converts an ANSI date created by the CA-Clipper DTOS() function,back into the standard date format. If the ANSI date is invalid, a null date is returned.
Regards
--
Esgici
Last edited by esgici on Mon Jun 01, 2009 6:26 pm, edited 1 time in total.
Hello rathinagiri
Give you this small example, if you have
can be used with SET DATE ANSI can add dates
SET CENTURY ON
SET DATE FRENCH
@ 90,275 LABEL LABEL_1 VALUE DTOC(date()) // Fecha de Hoy - Today's Date
FECHA_F = DATE()
SET DATE ANSI
dia01 = FECHA_F+24 // Fecha de Hoy + 24 dias - Today's Date + 24 days
SET CENTURY ON
SET DATE FRENCH
FECHA1=DTOC(dia01)
@ 170,275 LABEL LABEL_3 VALUE FECHA1 // La Fecha Nueva sumada - New Date added