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
Steven (Colorado, USA)