Page 2 of 2
Re: four digit year
Posted: Wed Mar 02, 2016 12:06 pm
by francof
Hi Jaque,
your function works on windows but, I want o use my app also on android and this environment is the only one where "useSystemDate " do not works.
best
franco
Re: four digit year
Posted: Wed Mar 02, 2016 12:52 pm
by francof
so to verify if the date is correct I have done this,
starting by a date format dd/mm/aaaa
transform it in mm/dd/aaaa
and then convert it in dateitems
Code: Select all
put fld "fldData" into tData
set itemdel to "/"
put item 2 of tData into tMM
put item 1 of tData into tGG
put item 3 of tData into tAAAA
put tMM & "/" & tGG & "/" & tAAAA into tDataMmGgAaaa
convert tDataMmGgAaaa to dateItems --test if date
if the result = empty then
else
beep
answer warning "Attenzione, la data inserita non รจ valida!" --the result (ritorna il msg "invalid date"
exit to top
end if
ciao
franco