Page 1 of 1

Need explaining for calendar app :)

Posted: Tue Oct 14, 2014 1:01 pm
by AstghikM
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.

Re: Need explaining for calendar app :)

Posted: Wed Oct 29, 2014 5:20 pm
by MaxV
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