jQuery Datepicker - empty date goes to 1970-01-01
Hi all,
I'm using the jQuery Datepicker (
https://jqueryui.com/datepicker)
My users are allowed to leave the datepicker blank.
When they send the form, I get a value of 1970-01-01, but I would like to get a blank value (empty space for example).
Looking at the datepicker js file, I found this piece of code:
_ticksTo1970: ( ( ( 1970 - 1 ) * 365 + Math.floor( 1970 / 4 ) - Math.floor( 1970 / 100 ) +
Math.floor( 1970 / 400 ) ) * 24 * 60 * 60 * 10000000 ),
I tried to alter this file, but it keeps returning 1970-01-01, no matter what.
How would I alter this file, so it returns a blank value in my send mail?
Thanks in advance.