iPhone pickDate

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
stevenchalmers
Posts: 15
Joined: Mon Jul 11, 2011 8:12 pm

iPhone pickDate

Post by stevenchalmers » Wed Sep 07, 2011 11:37 pm

I must be missing something with iphonePickDate tutorial because the starting value is today, rather than the second parameter I give it.

According to the dictionary the iphonePickDate syntax is: iphonePickDate [style, current, start, end, step]

Note that the second parameter is called "current" rather than "selected".

If I call iphonePickDate with this code the date that is first displayed is today, not 07/29/11.

Code: Select all

put "07/29/2011" into tSelected // the date and time selected by default
put "07/20/2011" into tRangeStart // the minimum date and time that can be selected
put "08/01/2011" into tRangeEnd // the maximum date and time that can be selected
put 5 into tInterval

// convert the dates into seconds since the UNIX Epoch
convert tSelected to seconds
convert tRangeStart to seconds
convert tRangeEnd to seconds

// launch the date and time picker
iphonePickDate "dateTime", tSelected, tRangeStart, tRangeEnd, tInterval
I have the same issue if I use "date" as the first parameter too.


Steven (Colorado, USA)

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: iPhone pickDate

Post by Dixie » Thu Sep 08, 2011 9:28 am

Hi...

I am having the same problem... it looks like you can have any day as long as it is today! :D

be well

Dixie

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: iPhone pickDate

Post by CALL-151 » Sun Sep 11, 2011 10:12 pm

Off topic, I know, but how'd you learn that 4.6.4 had been released? I found out by inference after reading this topic. There's gotta be a better way. :?

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: iPhone pickDate

Post by Jellicle » Mon Sep 12, 2011 7:42 am

So you didn't get the email? Contact RunRev to make sure you are on their mail list.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: iPhone pickDate

Post by CALL-151 » Mon Sep 12, 2011 12:59 pm

Will do, thanks. I get the newsletter and several/month from sales@runrev, but no 4.6.4 announcement.

BTW, after briefly playing around with different settings in pickDate I have the same issue.

Nikovash
Posts: 15
Joined: Thu Mar 24, 2011 7:38 am

Re: iPhone pickDate (interesting result)

Post by Nikovash » Fri Sep 16, 2011 1:16 pm

After reading this post I went and tried out the iPhone Date Picker command and experienced the same result. Interesting enough I had a weird result come to light that I just didn't think of. Effectively the date 1/1/1970 is actually 28800 in seconds, because I am at GMT -8:00 hours of trying to come up with a conversion to offset for this was not needed and I was simply overreacting to what should happen in the first place. Silly time zones!

CALL-151
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 206
Joined: Wed Oct 20, 2010 11:00 am

Re: iPhone pickDate

Post by CALL-151 » Fri Sep 16, 2011 4:30 pm

Just checked version 4.6.4 build 1453 to see if this is resolved. It isn't.

Post Reply