If I enter the date 02/13/2018 the validation gives OK, but if I enter 13/02/2018 the validation is invalid date.
.
if field "field_date" is not date then
answer "fecha invalida"
else
answer "Fecha OK"
end if
How do I enter DD / MM / YYYYY and validate OK?
Thank you for any help.
Jorge Gayoso
Chile
Format Date dd/mm/yyyy in objet field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Format Date dd/mm/yyyy in objet field
If your regional settings are set for DD/MM/YYYY format then you canThis will need to be reset for each script that uses date functions and will unset itself at the end of the script. On Windows, please note that a date before 01/01/1970 will not validate at all, regardless of the system date settings.
Code: Select all
set the useSystemDate to true
-
- VIP Livecode Opensource Backer
- Posts: 9660
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Format Date dd/mm/yyyy in objet field
What Sparkout said.
Just for grins, know that on a Mac (of course) a wider range of prehistory is available.
viewtopic.php?f=9&t=26619&p=138530&hili ... ng#p138530
Craig Newman
Just for grins, know that on a Mac (of course) a wider range of prehistory is available.
viewtopic.php?f=9&t=26619&p=138530&hili ... ng#p138530
Craig Newman
Re: Format Date dd/mm/yyyy in objet field
couldn't you just grab the seconds since then, and convert it to date?
*Edit - On reflecting about it a bit more, I think I'd use the date function, then put the items in whatever order I needed them to show up.
Re: Format Date dd/mm/yyyy in objet field
SparkOut , thank you.
Greetings from the south of the world.
Jorge Gayoso
Greetings from the south of the world.
Jorge Gayoso