Date conversions drive me crazy.
How do I remove the slashes from the 'b_char_8' and 'e_char_8' fields below?
I tried the obvious but it didn't work.
How do I remove the slashes from the 'b_char_8' and 'e_char_8' fields below?
Code:
*---------------------------------------------------------- * * Determine First and Last dates. * start_date = %date(%subst(%char(%date(mydate)):1:8) + '01':*ISO); end_date = start_date + %months(1) - %days(1); *---------------------------------------------------------- * * Convert dates to character. * b_char_8 = %char(start_date:*mdy/); e_char_8 = %char(end_date:*mdy/); *----------------------------------------------------------
Comment