Timestamp problem showing 1970 instead of 1988
Posted
by
gmuhammad
on Stack Overflow
See other posts from Stack Overflow
or by gmuhammad
Published on 2010-12-31T10:11:48Z
Indexed on
2010/12/31
10:53 UTC
Read the original article
Hit count: 312
blackberry
|timestamp
Hi,
I am trying to set default value in DateField using the following statement
DateField dateField = new DateField("Birthday:", 567993600, DateField.DATE | DateField.FIELD_LEFT);
but when I run my application it shows me 7 Jan 1970 instead of 1 Jan 1988.
I checked the time stamp on http://www.onlineconversion.com/unix_time.htm
and it shows me correct expected date which is, "Fri, 01 Jan 1988 00:00:00 GMT"
I am using 8900 simulator and my date time is correct showing today's date 31 Dec 2010 in date time under options folder.
Regards,
-gmuhammad
© Stack Overflow or respective owner