Which format is dd/mm/yyyy

2505 pts.
Tags:
AS/400
AS/400 administration
Is there a date format like this dd/mm/yyyy?

Software/Hardware used:
As400

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 6  Replies

 
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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    The link in the 'Answer' is obsolete and does not cover all date formats. A better link might be DATFMT (Date Format) keyword for physical and logical files, but it's not clear what kind of "date format" you are looking for.   Is it for a report? For a display file? For the CVTDAT command in a CL program? For a RPG or COBOL program to manipulate a date value?   A date format should only be important when a date value is being shown to a human. There might be no standard format name that matches your request, but you can generate it easily enough.   What exactly are you needing to do?   Tom
    125,585 pointsBadges:
    report
  • RamvishakRamesh
    Through a display file, user is entering date in dd/mm/yyyy format. I need to validate the date and save to file
    2,505 pointsBadges:
    report
  • RamvishakRamesh
    Thanks everyone, I am done with it with the help of TEST(DE)  C     *EUR0         Test(DE)                DspfFld Then catch the %error     
    2,505 pointsBadges:
    report
  • TomLiotta
    The TEST op-code should trigger %error() if you run it against a date in dd/mm/yyyy format with *EUR0. It should always throw an error if there are any separators like you showed, even if the day, month and year are valid. You need a different method. -- Tom
    125,585 pointsBadges:
    report
  • RamvishakRamesh
    My display file filed is only 8A. Separator is not expected. Need to validate it without separator. Please confirm in that case whether my approach is correct.
    2,505 pointsBadges:
    report
  • TomLiotta
    That would make sense, but it's different from what you asked in the question. And the question title means that others will have a harder time when searching for answers. Please ask questions that indicate what you need. Help will be much easier to give. -- Tom
    125,585 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following