Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date using Calendar for a spcific Locale

 
adithya narayan
Ranch Hand
Posts: 79
Android Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I tried the following but it didn't work as expected:


which printed :



I was expecting it to print the current date in Italy.

Can anyone explain?

Thanks,
Adithya.
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try using Locale.ITALY instead of "it".
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather than just trying things, I suggest you refer to the API, Calendar API.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic