function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
StonyStony 

Setup Web to Lead for ISO format Date Entry

We'd like to populate the date field on a web to lead form with a bit of background javascript. I am aware the date format should be based on the org's Default Locale, and as such the format might be different for the US or UK.

 

The issue is that we'd like to populate the date field regardless of the local. The reason for this is that we'd like the javascript to work on other people's web-to-lead sites, regardless of their local.

 

Is there any ISO format for the date that will work with a Web to Lead, like YYYY-MM-DD, or YYYY/MM/DD? I have tried both of these and they don't seem to work.

 

For reference, here is Salesforce's instructions (http://na11.salesforce.com/help/doc/en/setting_up_web-to-lead.htm) where they say:

 

The format for date and currency fields captured online is taken from your organization’s default settings - Default Locale and Currency Locale.

 

Thanks!

Jeff MayJeff May
StonyStony

Hi Jeff

 

Thanks - I think that chart told me I never want to programmatically have to format a date to the relevant local!

 

OK, unless there's an ISO standard way to do it regardless of Locales, I'll skip this

 

thanks!

Talha SaqibTalha Saqib
Please try the following resource:
https://retrology.net/the-correct-format-of-datetime-field-in-web-to-lead-form-salesforce/