Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Contributor
Posts: 25
Registered: ‎02-19-2013
My Device: 8520
My Carrier: vodafone

string to date conversion

Hi ,

 

can anyone tell me how to convert a string "dd-mmm-yyyy" into date format

eg: string = "10-Jan-2013" ------- need to convert into date by using httpDateParser.parse()

 

 

 

Thanks

Vijay

Developer
Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: string to date conversion

httpdateparser only takes a very strict format.
parse the string yourself using substring and calendar.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter