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/008b2fc0-2836-48a9-8ab0-58c345e10a3bn%40googlegroups.com.
