how to get any specific date of current year
Hi I was wondering if there was any way using Jav's Date class or and Joda
Time classes to get any specific day of this year. For example if I want
the date 12/31/2013. The reason why this is a problem is because I am
giving a string representation of someone's birthday lets say "12311991"
"MMddyyyy" and I want to convert this to be a Date which has month 12 day
31 and year 2013. Can anyone help me on this?
I am using the DateMidnight Joda time class and I parse the string into a
date using Simple Formatter but I was wondering if there was any way to
set the year to be a specific year.
THank you
No comments:
Post a Comment