Hi,
I would like to extract a date from Excel in MM/DD/YYYY format which is located in cell B2, convert it in a Stata monthly date "YYYYmMM" and put in as input in a global macro variable in Stata as monthly date, month and year:
global mdate ...
global month ...
global year ...
Anyone can help? Thanks a lot in advance.
Related Posts with Extract date from Excel as input in global macro
invalid numlist has missing values Error in forestplotHi, Recently, when I use metan or admetan on aggregated data, there is always an error with the fore…
Out of sample prediction using a two way fixed effectDear members, When using a two way fixed effect model, "i.year" is added in the command which estim…
Publication style tables for mlogit modelsHello! I want to make publication-style tables for mlogit models. I tried using asdoc with the nest…
Creating a column out of the results from a loopI have a panel data and I have used a loop to tabulate the standard errors by stacking 3 columns tog…
SAS to STATAI'm hoping someone can help me recreate the following SAS code in STATA. if first.studyid_adult the…
Subscribe to:
Post Comments (Atom)
0 Response to Extract date from Excel as input in global macro
Post a Comment