You need to sign in to do that
Don't have an account?
Carl_V
Locale setting affecting date entry manipulation
Hi All,
Can anyone shed some light on how the locale setting impacts date type entries on a form? I have realised whilst building an s-control that uses a calendar popup, if I use 'English (US)' locale setting, then input works properly (ie 2nd April minus 1st April = 1 day). If I use my actual locale 'English (Australia)' then after selecting April 2nd on calendar popup, the 'April 2nd' I chose minus 1st April = 31 days - its switched the day and month. Interestingly, the date displays in correct format, but obviously underlying number doesnt behave like it.
Is there some way I can manipulate the input from the widget prior to performing simple date calcs to eliminate this problem?
Regards,
Carl_V
'_blank', 186, 170, 'width=186,height=170,resizable=yes,toolbar=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,dependant=yes', true, true);clearlist();"
class="datePicker" title="Pick A Date (New Window)" onclick="setLastMousePosition(event)"
onchange="document.editPage.focusThisFieldOnLoad.value='StartDate';document.editPage.submit();"
id="StartDatePopCal"><img src="/s.gif" alt="Pick A Date (New Window)" class="datePickerIcon"></a>"