Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

chage string into a date

Hi
I have a string "12NOV02" ,can i change this into a Date object .
Thanks and regards
Vivek
0
vrbhu
Asked:
vrbhu
1 Solution
 
objectsCommented:
Try something like:
SimpleDateFormat df = new SimpleDateFormat("ddMMMyy");
Date d = df.parse(mydatestring);
0
 
vrbhuAuthor Commented:
Thanx .
0
 
objectsCommented:
Please grade the question so that it can be PAQ'ed.
0
 
CleanupPingCommented:
vrbhu:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
TimYatesCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept objects' comment as answer.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TimYates
EE Cleanup Volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now