Page 1 of 1

Determining Year.

Posted: Wed Feb 25, 2015 7:02 am
by Googie85
I am still new to livecode and the dictionary is my friend. Although am having some difficulties with determining the current year...

put the long dateFormat into Test
answer Test

With this code I get some abbreviations returned. I cant get a year, instead I get %Y.

Thanks Guys.

Matthew.

Re: Determining Year.

Posted: Wed Feb 25, 2015 8:45 am
by Simon
Hi Matthew,
Check out just plain old "date" in the dictionary.
My favorite is internet date, but also get used to "convert internet date to dateItems".
dateItems are cool because they handle all the math (leap year and such) when you need to manipulate it.

Simon