Javascript/Java - Webservice returning doubles for date.valueOf() -


i have javascript webservice returns array of timestamps using date.valueof().

but reason when android application gets results doubles! why happening? have confirmed array in webservice loaded non double values!

valueof() returns primitive value of date object, double you're seeing date expressed in milliseconds since midnight 01 january, 1970 utc. known epoch time.

if want date in other format, should @ documentation getfullyear, getmonth, , getdate, use construct string date.

alternatively, java has calendar class has functions convert epoch time regular dates.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -