anneoctaaf
Programmer
I'm using the date function to convert a string to a date:
dt_today = today()
li_maand = month(dt_today )
li_jaar = year(dt_today )
li_dag = day(dt_today )
IF li_month > 1 THEN
li_month = li_month - 1
ELSEIF li_month = 1 THEN
li_month = 12
li_year = li_year - 1
END IF
ls_date = string(li_day) + '/' + string(li_month) + '/' + string(li_year)
dt_last_month = date(ls_date)
This used to work, but since a day or two it doesn't. Th edebugger says dt_last_month = 1-1-1900 (while ls_date is correct)
Does anybody know what's going on?
dt_today = today()
li_maand = month(dt_today )
li_jaar = year(dt_today )
li_dag = day(dt_today )
IF li_month > 1 THEN
li_month = li_month - 1
ELSEIF li_month = 1 THEN
li_month = 12
li_year = li_year - 1
END IF
ls_date = string(li_day) + '/' + string(li_month) + '/' + string(li_year)
dt_last_month = date(ls_date)
This used to work, but since a day or two it doesn't. Th edebugger says dt_last_month = 1-1-1900 (while ls_date is correct)
Does anybody know what's going on?