Determining Year.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Determining Year.

Post by Googie85 » Wed Feb 25, 2015 7:02 am

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.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Determining Year.

Post by Simon » Wed Feb 25, 2015 8:45 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply