String - last day in the month

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

tvonbrasch
Posts: 540
Joined: Fri Apr 15, 2011 5:35 am

String - last day in the month

Postby tvonbrasch » Wed Nov 15, 2017 7:34 am

Hi

I have a daily workpage. I want a string that gives me the last day in a given month, i.e for a given year YYYY and month MM, how can I get the last day of that month?

Code: Select all

string %DD=  ??


Thomas

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

Re: String - last day in the month

Postby EViews Gareth » Wed Nov 15, 2017 8:32 am

On my phone so can’t test it, but a combination of @datestr and @dateceil should do it.
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 15 guests