How to convert "9:00 PM EST" to a Date object

Posted by Bara on Stack Overflow See other posts from Stack Overflow or by Bara
Published on 2010-04-06T03:35:36Z Indexed on 2010/04/06 4:23 UTC
Read the original article Hit count: 201

Filed under:
|
|
|
|

I am developing an Android application and require some basic datetime manipulation. I have a Date object (from Java.util.Date) holding a specific date. I need to add a specific time to it. The time I have is a string in this format: "9:00 PM EST"

How would I "add" this time to the previous date? If the Date object currently has: "4/24/10 00:00:00"

How would I change it to instead be: "4/24/10 09:00:00 EST"

I would prefer to do this without the use of an external library, if possible.

© Stack Overflow or respective owner

Related posts about android

Related posts about java