Jump to:

1971 Posts in 1275 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » Membership Form with Start and End Dates

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

Page: 1
Go to End
Author Topic: 864 Views
  • denbear
    Avatar
    Community Member
    7 Posts

    Membership Form with Start and End Dates Link to this post

    I'm creating a form for a membership registration. What I'm trying to accomplish is to append two dates to the data that I collect from the form and send it to the database. I want today's date and today's date plus one year. I can't find a good example. I've got a new Class, Membership_Submission, that gets called when the Submit button is clicked. I'm sure that's were I'll put this code. I just can't figure out or find an example of generating the two dates I need and adding them to the collection of data that comes from the form.

    Any help is greatly appreciated.

    864 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.