Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Sending a form on a specific date & time

Options
  • 17-01-2015 2:43am
    #1
    Registered Users Posts: 763 ✭✭✭


    Anyone got an example of how to send a form on a datepicker date & time?

    Have tried all sorts of google search terms and cannot nail this one.

    thanks


Comments

  • Moderators, Society & Culture Moderators Posts: 9,689 Mod ✭✭✭✭stevenmu


    Generally a form is something that a user interacts directly with, so it isn't usually something that you would schedule.

    The normal way to achieve what you want to do, or what I think you want to do at least, is to store the results of your form, including the data picker, in some intermediate location. Normally this would be a database but could be a file location as well.

    Then, you want some kind of timer job or scheduled task to periodically check your database of file location for any data/transactions which are due to be sent. Depending on your needs this could happen every second, every few minutes, daily, once a week etc.

    So the two things you will need to figure out are, how to save data from a form, and how to create a timer job or scheduled task. There's a lot of ways to do each depending on what technologies you are using and are familiar with.


  • Registered Users Posts: 6,035 ✭✭✭Talisman


    You need to submit the selected date & time in ISO 8601 format so you can be sure that the time cannot be misinterpreted on the server side.

    JavaScript has a Date.toISOString() method which returns the correctly formatted date string. Old browsers (IE8 and earlier) will require the ECMAScript 5 compatibility shim in order to work.


Advertisement