INTERACT FORUM

Windows => Plug-in Development => Topic started by: KingSparta on October 17, 2006, 07:20:31 pm

Title: Reading Date In SDK
Post by: KingSparta 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?
Title: Re: Reading Date In SDK
Post by: scthom 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.
Title: Re: Reading Date In SDK
Post by: Doof 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.
Title: Re: Reading Date In SDK
Post by: KingSparta 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