How to Set the Date Field Calendar Week to Begin on Sunday (Instead of Monday)

Hi there - relatively new to GF.

Am I missing something obvious here? One of my clients tells me that her clients keep messing up their date submissions as they are used to the calendar week beginning on Sunday.

The locale is set to en_US.

Thanks for your help!

Hi Marianne. The Gravity Forms datepicker will start the week on Sunday by default. If that is not happening on your site, there may be other code on the site that is changing that. I recommend opening a support ticket for the issue.

Thank you.

1 Like

Thanks Chris – will do!

Regards,

Marianne Pendleton

“Ignorance more frequently begets confidence than does knowledge.”

  • The Descent of Man, Charles Darwin

Marianne did you get this issue fixed? I have same problem.

Hi Mike -

The person my client hosts their site with (who owns the license) added this code to an HTML block on the form:

<script>
gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {

gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
   // Sunday is 0, Monday is 1, etc.
   optionsObj.firstDay = 0;
   return optionsObj;
});

   return optionsObj;
} );
</script>

Hope that makes sense and works for you.

Marianne