So you basically need * int i = pkTiempo.getDate().getTime();*
On Thursday, January 14, 2021 at 10:19:45 AM UTC-5 Hannah R wrote:

> Get the Date from your picker first, and then do getTime() from this date. 
> Something like this 
> date.getTime(). 
>
>
> On Wednesday, January 13, 2021 at 11:25:02 PM UTC-5 [email protected] 
> wrote:
>
>> Hi,
>>
>> According to the documentation the "getTime ()" method returns an integer. 
>> Provide 
>> the following simple instruction:
>>
>> int i = pkTiempo.getTime();
>>  
>> and Send the following error: 
>>
>> [EDT] 0:1:17,977 - Exception: java.lang.ClassCastException - 
>> java.util.Date cannot be cast to java.lang.Integer
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f55c607c-ebd3-4d07-9e71-1c6444a8ac76n%40googlegroups.com.

Reply via email to