[codenameone-discussions] Re: Date parsing different on iOS?

2019-03-29 Thread Shai Almog
Are you using the SimpleDateFormat from java.text or com.codename1.l10n? Use the latter. -- 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 codenameone-d

[codenameone-discussions] Re: Date parsing different on iOS?

2019-03-29 Thread Gareth Murfin
im assuming the week begins on a sunday in java, if so all good, i remember seeing that once on my casio watch but never again :) On Friday, March 29, 2019 at 7:42:06 PM UTC+8, Gareth Murfin wrote: > > So yeah I was substringing date.toString, not a good idea. I changed it to > be more consisten

[codenameone-discussions] Re: Date parsing different on iOS?

2019-03-29 Thread Gareth Murfin
So yeah I was substringing date.toString, not a good idea. I changed it to be more consistent as shown below, but I still have a weird issue, day of the week seems to be 2 days out: int DAY_OF_WEEK = cal.get(java.util.Calendar.DAY_OF_WEEK); switch(DAY_OF_WEEK) { case