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
four digit year
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: four digit year
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
ciao
franco
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
franco