Iso to numeric date conversion in RPG /free

5 pts.
Tags:
RPG /free date-conversion
I came across Mitchel Laman's article entitled "RPG free-format date conversion cheat sheet" and felt like I'd struck gold.  Thank you Mitchel!  However, I cannot get this set of conversions to work: @numA = %dec(%char(@dateA:*ymd/):6:0);     @numB = %dec(%char(@dateA:*cymd/):7:0);   @numC = %dec(%char(@dateA:*iso-) :8 :0);   @numD = %dec(%char(@dateA:*mdy/):6:0);    @numE = %dec(%char(@dateA:*usa/):8:0); 

 

I get this error with all five of them: A character representation of a numeric value is in error (C G D F). What am I doing wrong? Thanks.  

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • philpl1jb
    odd .. life and the formats Where you've got / you need 0 the formats like *mdy include the seperators so today is 02/01//12 trying to convert this to a decimal will create an error .. but most of the formats have an alter-ego, go Clark Kent, like this *mdy0 today in this format is 020112 which can be converted to a decimal. Phil/
    54,030 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: