Find date of first Friday

For questions regarding programming in the EViews programming language.

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

BT454
Posts: 87
Joined: Wed Aug 02, 2017 6:07 am

Find date of first Friday

Postby BT454 » Wed Nov 25, 2020 6:46 am

Hi all,
Is it possible to write a piece of code that would return the date of the first Friday of a given year?
Thanks!
Bob

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

Re: Find date of first Friday

Postby EViews Gareth » Wed Nov 25, 2020 8:40 am

The first Friday that exists in the (daily) workfile, or the first Friday that exists existentially?
Follow us on Twitter @IHSEViews

BT454
Posts: 87
Joined: Wed Aug 02, 2017 6:07 am

Re: Find date of first Friday

Postby BT454 » Tue Dec 15, 2020 10:46 am

hi and sorry for my delay!
the first friday of a given month within a workfile.
Thank you very much!

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

Re: Find date of first Friday

Postby EViews Gareth » Tue Dec 15, 2020 10:53 am

Sorry, still not clear.

What is the frequency of the workfile?

Do you want to return a single string that contains the date of the first Friday in a specific month that exists in that workfile?
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 18 guests