You need to sign in to do that
Don't have an account?
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!
Perhaps this chart will help: http://na3.salesforce.com/help/doc/en/admin_supported_locales.htm
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!
https://retrology.net/the-correct-format-of-datetime-field-in-web-to-lead-form-salesforce/