date conversion

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

mark
Posts: 37
Joined: Thu Mar 12, 2009 3:27 pm

date conversion

Postby mark » Mon Jul 13, 2009 10:19 am

I have a problem importing date data form excel files expressed in a YYYY-MM-DD format. For example, eviews imported 2005-04-21 and converts it to a number, in this case 38463.0
Is there a way to convert the 6 digit number to a year? In this example, I need to work with a value of 2005 rather than a number. I have a data file with 80,000 records and need to convert all
thanks

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: date conversion

Postby startz » Mon Jul 13, 2009 2:39 pm

Look at @datepart


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests