mobilePickDate result format?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Posts: 42
Joined: Fri Feb 08, 2019 1:53 pm

mobilePickDate result format?

Post by slowmaker » Sun Feb 23, 2020 7:35 pm

Am I misreading the docs?
The selected date, time or date and time are returned in the result. The value is in seconds since the UNIX Epoch. If the picker is cancelled then cancel is returned in the result.
Looks to me like this line:
mobilePickDate "date"
should return seconds since epoch in the result, but I keep getting just a short date format.

Code: Select all

mobilePickDate "date"
put the result into tDate
answer tDate  -- I'm getting "2/23/20", here, not the expected seconds since unix epoch
This is on a Galaxy J3 Luna Pro, running android 6.0.1.
Creating standalone and delivering to phone via Test menu item in LC 9.5.0 build 15503.
The important thing is not to stop questioning. Curiosity has its own reason for existence. - Albert Einstein (LIFE Magazine (1955 may 2), p64)

Posts: 12326
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany

Re: mobilePickDate result format?

Post by Klaus » Sun Feb 23, 2020 7:41 pm

Obviously a known bug since 2013! :(

Post Reply

Return to “Android Deployment”