• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Date Format Issue

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

We have a JForum 2.1.4 setup which is working out well so far. The only issue that I can see is that for some reason the date format on the forum entries themselves (and the roll-up) come out as "26/130/2005 14:26:15". The format is consistent, but the day/month come out dramatically different even if entered on the same day. Our current date format in the configuration area is "mm/DD/yyyy HH:mm:ss".

Thanks in advance for any assistance you can provide.

Regards,


-Spencer
[originally posted on jforum.net by spencer.yonker]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I guess you actually mean MM/dd/yyyy HH:mm:ss .

The upercase DD is the day of year (130) whereas the lowercase dd is the day of the month. Same with mm versus MM for minutes and Months.

see the java documentation for more information :

http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html

Marc
[originally posted on jforum.net by marc]
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic