• Post Reply Bookmark Topic Watch Topic
  • New Topic

Trouble in getting right maximum of DAY_OF_MONTH  RSS feed

 
Esmaeil Ashrafi
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, let's check the snippet please:

currently we are in june and it should print 30, but the output is 31.
note that my Windows XP time zone was set to Asia/Tehran (GMT+3.30), i fon't know it's because of that or not...but i am writing an application should have the correct value for this field.

any help will be much appreciated

Kind Regards
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Try getActualMaximum().


Henry
 
Esmaeil Ashrafi
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Henry,
i also read the documentations for both methods and became more clear...

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!