Problem in mobilepickdate

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

Problem in mobilepickdate

Post by terryho » Wed May 08, 2013 5:11 am

Hi

I had face this problem in mobilepickdate in IOS and android machine. Does any one face this before?

In mobilepickdate, If I pick the date after 1936, it will return 1/1/1936. But if I pick the date before 1936, for example
1/1/1925, it will return 1/1/25. Therefore if I convert to date function, it will get the date 1/1/2025.

This also affect the data range limit in mobilepickdate function, if i use mobilepickdate("date", , "1/1/1910", "1/1/2015",). Then the date range selection is only for year 2010 to 2015.

Does any one have solution on it? or this is a bug?

Regards

Terry Ho

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Problem in mobilepickdate

Post by jacque » Wed May 08, 2013 7:08 pm

In LiveCode it would be due to the centuryCutoff property, which controls which century a date belongs to. But LiveCode's default cutoff is 1935, which isn't what you are seeing, and LiveCode only applies a cutoff to 2-character years; if you use a 4-character year it isn't changed. That makes me think the problem might be in iOS, but I haven't done any research about it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Doug Lyman
Posts: 30
Joined: Thu Jun 30, 2011 6:13 am

Re: Problem in mobilepickdate

Post by Doug Lyman » Tue Jul 26, 2016 5:09 pm

Still a problem as of July 2016. We need MobilePickDate to return a four digit year in the result. Otherwise we cannot use the date picker to select birthdates.

Post Reply