How to convert Facebook created_time to Java Date?

Posted by smitty on Stack Overflow See other posts from Stack Overflow or by smitty
Published on 2010-06-09T15:50:07Z Indexed on 2010/06/09 15:52 UTC
Read the original article Hit count: 372

Filed under:
|

Hi,

I have a FQL statement like this:

String query = "SELECT post_id, actor_id, target_id, created_time, message 
FROM stream WHERE source_id in (SELECT target_id FROM connection 
WHERE source_id=<userID>) AND is_hidden = 0";

I just wondering what kind of time Facebook gives to me. The result of my statement will be mapped to a wrapper object (wallpost).

myDate.setTime(wallpost.getCreated_time());

gives me no valid date.

Does anyone have an idea what kind of date Facebook returns and how to match it to Date()?

thanks in advance!

© Stack Overflow or respective owner

Related posts about java

Related posts about facebook