ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

date field in dds for PF

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • date field in dds for PF

    Is there any way of defining the date field in the format dd/mm/yyyy in dds for PF?


    Regards
    Sai
    To every equation there is a solution....
    Regards
    Sai.

  • #2
    Re: date field in dds for PF

    D MYDATE L DATFMT(*EUR)

    *EUR date format is ddmmyyyy
    Bill
    "A good friend will bail you out of jail,
    A true friend would be sitting beside you saying,
    'Wow, that was fun.'"

    Comment


    • #3
      Re: date field in dds for PF

      yes but *EUR gives the format dd.mm.yyyy , how to change it to dd/mm/yyyy. I tried DATSEP BUT FAILED


      REGARDS
      SAI
      To every equation there is a solution....
      Regards
      Sai.

      Comment


      • #4
        Re: date field in dds for PF

        then it is not a standard date format. Define it numerically and use an edit word.
        Bill
        "A good friend will bail you out of jail,
        A true friend would be sitting beside you saying,
        'Wow, that was fun.'"

        Comment


        • #5
          Re: date field in dds for PF

          There's no reason to define the "look" of a date in a PF. Just assign it as a "date" type, then retrieve it into the format you want when you need it.

          -Rick

          Comment


          • #6
            Re: date field in dds for PF

            Hey
            Use editw in rpgle and you can definr in in which ever format u want..

            Thanks
            'Coding = Experience'
            hsp

            Comment


            • #7
              Re: date field in dds for PF

              I agree with FaStOnE, the field should just be a real date field in a file.

              We had a funny person make date fields have a funny format (non *ISO). Now when ever anyone looks at one of the programs that uses this file, they get a chuckle.
              Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

              Comment


              • #8
                Re: date field in dds for PF

                Eric

                Hey! What was that funny guys name...I think he wrote some code here also
                All my answers were extracted from the "Big Dummy's Guide to the As400"
                and I take no responsibility for any of them.

                www.code400.com

                Comment

                Working...
                X