I've got a macro variable that takes a string (e.g., '1-1-2014') to feed into a SQL query. I then want to include that date, without the single quotation marks and formatted differently, as a title on my reports. How would I go about changing the string '1-1-2014' (again, with single quotation marks) to January 1, 2014 (worddate format).
%let date = '1-1-2014';
title "Report as of [Conversion Code Here]";
Of course, if you know of a better/more efficient way to do what I'm getting at, I'm all ears. (My program does require pulling data out of SQL Server, which is why I have the macro variable formatted with the single quotes around it.)
Thanks in advance.
(I searched through existing questions and couldn't find an answer to this. My apologies if I missed something.)