Need explaining for calendar app :)

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
AstghikM
Posts: 45
Joined: Mon Sep 08, 2014 8:35 pm

Need explaining for calendar app :)

Post by AstghikM » Tue Oct 14, 2014 1:01 pm

Hi everybody :) Can you please help me to understand how works the ios calendar app, actualy i understand basic things in it but i have one problem, in the stack code because of my system language, it seems it can't convert "the long system date" to seconds ( my system language is russian). so can you help me what is the problem? can you suggest me some way to not have problem when you convert system date into seconds :) here is the app i found in the internet.
Attachments
iOS_Cal.livecode.zip
(24.41 KiB) Downloaded 198 times

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Need explaining for calendar app :)

Post by MaxV » Wed Oct 29, 2014 5:20 pm

Use this code for your purpose:

Code: Select all

convert  myDate to dateitems
this way myDate became a string where all items are separate with commas (,).
The sequence of the items are:
  1. the year
  2. the month number
  3. the day of the month
  4. the hour in 24-hour time
  5. the minute
  6. the second
  7. the numeric day of the week where Sunday is day 1, Monday is day 2, and so forth
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply