INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Reading Date In SDK  (Read 1647 times)

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Reading Date In SDK
« on: October 17, 2006, 07:20:31 pm »

I am trying to figure out how this data becomes a "Date"

Date: 35796

That Is A Date Read Directly From The SDK Using The "Date" Field

Here is Another

Date: 29221

Now how do i figure out what date that is?
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA

scthom

  • Citizen of the Universe
  • *****
  • Posts: 621
Re: Reading Date In SDK
« Reply #1 on: October 18, 2006, 12:56:20 am »

It's probably "days since 1900" (1/1/1900).

35796 = 1/1/1998
29221 = 1/1/1980

I've noticed they sometimes ask for "Year" and other times "Date" in the tags.  Year is a text field while Date is a number as above.  So not compatible with each other.
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5906
  • Farm Animal Stupid
Re: Reading Date In SDK
« Reply #2 on: October 18, 2006, 10:35:06 am »

I'm 99% positive that if you use Get("Date", true) it will give you the formatted date instead of that number.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: Reading Date In SDK
« Reply #3 on: October 18, 2006, 11:51:22 am »

It's probably "days since 1900" (1/1/1900).

35796 = 1/1/1998
29221 = 1/1/1980

I've noticed they sometimes ask for "Year" and other times "Date" in the tags.  Year is a text field while Date is a number as above.  So not compatible with each other.

Yes Maybe, i will need to look at that, and figure out the date to see if it matches.

Thanks for the hint
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA
Pages: [1]   Go Up