[SalesForce] Web to Lead, Date showing in Debug page, but not in the Lead

My contact for is using 2 date pickets, Check-in/Check-out dates.

When I fill out the form the dates show fine in the debug page. I receive and email with a link to view the lead and the dates are not there.

My HTML:

<li class="input-date1" ><input type="text" id="date1" name="00N80000002myxR" placeholder="Check In" required/></li>
<li class="input-date2"><input type="text"  id="date2" name="00N80000002myxS" placeholder="Check Out" required/></li>

This is the debug page date section:

Record Information:

00N80000002myxR: October/18/2016
00N80000002myxS: October/20/2016

Current Datepicker format:

$( "#date1" ).datepicker({ dateFormat: 'MM/dd/yy' });

And on the Lead page in SalesForce, they are blank.
Any ideas, I have tried about 10 different format types, it was working at first but it was confusing the Day and Month so I tried to change it, now even at default settings I get this issue.

Best Answer

Web-to-lead uses your organization's locale to try and parse date values, if I remember correctly. Check Setup > Company Profile/Settings > Company Information. If Default Locale is set to English (United States), you'll want to use MM/DD/YYYY format. If your locale is something else, use the correct date format for that locale. Other formats will not be accepted. Also note that the debug output shows 20162016 for the year-- this is obviously not correct, and salesforce.com only allows up to the year 4,000, so you'll want to double-check your code.

Related Topic