• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

What will be "MMM" for june ?

 
Ranch Hand
Posts: 92
Android
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, there

I wanna know what will be output month if I use "MMM" for June

I thought if I use "MMM" I will get July but I am getting Jul. If anyone tells me what will be my output for June.

I am making an app for my client in which days matter and I need to equate the day with the day to get things done. I really appreciate if anyone tells me what output will I get for June

Thanks
 
Ranch Foreman
Posts: 313
4
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(post deleted)
 
Randy Tong
Ranch Foreman
Posts: 313
4
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I wanna know what will be output month if I use "MMM" for June


The output will be Jun. But why can't you test it by yourself?

I thought if I use "MMM" I will get July but I am getting Jul.


If you want to get July, you should use MMMM instead.
 
Marshal
Posts: 64654
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Randy Tong wrote:. . . If you want to get July, you should . . .

. . . and why would you expect to get “July” in June?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!