Groups
Groups
Sign in
Groups
Groups
CodenameOne Discussions
Conversations
Labels
About
Send feedback
Help
How to change date format?
15 views
Skip to first unread message
Gareth Murfin
unread,
Oct 25, 2018, 2:59:21 PM
10/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
I have a method to create a date string like this
public String getTime()
{
return (new Date(time * 1000L)).toString();
}
this produces something like 2018-10-25 etc etc which appears to be for USA.
but how do I make this UK time ? IE.. 2018-25-10?
Shai Almog
unread,
Oct 26, 2018, 12:08:01 AM
10/26/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
You need to use SimpleDateFormat or L10NManager to format a date.
Reply all
Reply to author
Forward
0 new messages