Quote (vittujenkevat @ Mar 20 2014 01:29am)
Hi,
I have some database tables I need to get date out of but the date format is odd. Date is stored in integers, but its not unix time. I assume that biggest number in table is for today and the max value is 77879. Any one have idea how to get this to normal date format like '2014-03-20' for today.
Thanks.
number of days since 1800-12-28
probably supposed to be number of days since 1801-01-01 and some discrepancy from leap centuries or something. Play with dates in that range and maybe you can get something that works.