Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shivenigma/ba99b4403556311cd2ac to your computer and use it in GitHub Desktop.
Save shivenigma/ba99b4403556311cd2ac to your computer and use it in GitHub Desktop.
the ref.timepicker and ref.enquiry.action_date is an instance of a javascript Date() object
sendData.action_date = selected.getFullYear() + "-" + selected.getMonth() + "-" + selected.getDate() + " " + ref.timepicker.mytime.getHours() + ":" + ('0' + ref.timepicker.mytime.getMinutes()).slice(-2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment