Hi,
Does anybody know how the date number works in EViews?
I´m in need of using the number instead of the date string, and I´m finding hard to understand the relation it has with the Excel date number.
I could eventually use a command like @dateval, but I´d like to know how it works before...
I´d be grateful if someone could give me a hint.
Thks!
Sven
Date Number - Relation with other languages
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
sschaffrath
- Posts: 15
- Joined: Tue Nov 16, 2010 6:05 am
-
EViews Chris
- EViews Developer
- Posts: 161
- Joined: Wed Sep 17, 2008 10:39 am
Re: Date Number - Relation with other languages
The EViews date number is days since 1 Jan 1AD *if* the current calendar had existed back in 1AD (which it didn't).
This is a straight offset from the Excel date number (which is based on some slightly odd base date like 30th Dec 1899 -- check the Excel docs for that one) except that Excel has some weird issues with Feb 29 1900.
The bottom line is that unless you're dealing with dates around 1900, you can probably just add an offset to convert into EViews from Excel and subtract an offset to convert out of EViews into Excel.
Chris
This is a straight offset from the Excel date number (which is based on some slightly odd base date like 30th Dec 1899 -- check the Excel docs for that one) except that Excel has some weird issues with Feb 29 1900.
The bottom line is that unless you're dealing with dates around 1900, you can probably just add an offset to convert into EViews from Excel and subtract an offset to convert out of EViews into Excel.
Chris
-
sschaffrath
- Posts: 15
- Joined: Tue Nov 16, 2010 6:05 am
Re: Date Number - Relation with other languages
Chris,
Thanks for that! I`ll check.
Sven
Thanks for that! I`ll check.
Sven
Who is online
Users browsing this forum: No registered users and 2 guests
