We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18878
    • 210 Posts
    Hello,

    When you use &type=`profile` the dob always displays : month-day-year, like this: 08-23-1976

    I need to display it in a day-month-year format, so I called the snippet with dateFormat:

    [!WebLoginPE? &type=`profile` &dateFormat=`%d-%m-%Y` !]
    


    But this has no effect in the display. Can anyone provide a solution please?

    Thanks in advance.

    Mc
      • 28033
      • 925 Posts
      I forget if this was a bug where you needed to edit the class file to fix it. Maybe try messing around in there.
        My Snippets
        -> PopUpChunk v1.0
        • 18878
        • 210 Posts
        Quote from: Soshite at Aug 18, 2008, 08:16 AM

        I forget if this was a bug where you needed to edit the class file to fix it. Maybe try messing around in there.

        Thanks, are you sure this is a bug? I had no idea. Well....can you provide any hints where to start looking in the code in order to have the date displayed the way we desire?

        Regards.
          • 18878
          • 210 Posts
          Please: anyone found why dateFormat has no effect when using type=`profile` ?

          Thanks.
            • 4172
            • 5,888 Posts
            the parameter &dateFormat is only for the lastlogin-date. I have added a new parameter &dobFormat for me.
            See here: http://modxcms.com/forums/index.php/topic,28868.0.html

            Bruno
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!