Unexpected Date Calculation

For questions regarding programming in the EViews programming language.

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

Bob
Posts: 48
Joined: Mon Jan 17, 2022 6:10 am

Unexpected Date Calculation

Postby Bob » Thu Feb 06, 2025 8:20 am

Hello, here is my issue:

string deb1 = @otod(@dateadd(@dateval("01/01/2025"), 1, "b")) returns 7/08/4813

For information:
EViews 13 is configured with the date format as day/month/year.
I am working with daily data from Monday to Friday

Thank you

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

Re: Unexpected Date Calculation

Postby EViews Gareth » Thu Feb 06, 2025 8:40 am

You probably want @datestr not @otod

Bob
Posts: 48
Joined: Mon Jan 17, 2022 6:10 am

Re: Unexpected Date Calculation

Postby Bob » Thu Feb 06, 2025 9:14 am

Thanks


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests