Jump to:

10989 Posts in 2726 Topics by 1817 members

All other Modules

SilverStripe Forums » All other Modules » Userforms date formatting

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 692 Views
  • mattems
    Avatar
    Community Member
    1 Post

    Userforms date formatting Link to this post

    Hey All,

    I am trying to change the format of the date that is sent via email once a form is submitted.

    The field is Date Field.

    Im wanting the email to show: January 15th 2011 (for example) instead of the US format.

    Thanks in advance guys.

    ps. im a total noob with silverstripe.

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Userforms date formatting Link to this post

    from the header of my
    userforms\code\editor\EditableDateField.php

    * @todo Localization, Time Field / Date time field combinations. Set ranges of dates,
    *       set default date

    however, if I were to start hacking, it would be around here...
    userforms\code\UserDefinedForm.php

    function process($data, $form) {
    ...
    //somewhere here it builds an email content so I'd change the one thing I am intrested in before it sends it
    ...
    $email->send();   
    ...
    }

    692 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.