Adjusting DatePicker in SharePoint 2010 Custom List Form

I have a Global Site that has multiple custom lists that all operate at different regions.

Server is in US Central Time

On one custom list (example) the people are all in Singapore Time so when they load the NewForm.aspx file the date pickers can show the wrong date which is confusing.

I need a way in code in the .aspx to force the DatePicker to use the users local time and not the server time for the datepickers.

sample code
<SharePoint:FormField runat="server" id="ff63{$Pos}" controlmode="New" fieldname="TRIAGE_Date" __designer:bind="{ddwrt:DataBind('i',concat('ff63',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@TRIAGE_Date')}" />

May 21st, 2015 7:40am

I assume this must not be possible by the lack of response...
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 5:23pm

Hi Matt,

As a workaround, we can customize the code and use  jQuery DatePicker Control to get the local time.

<script type="text/javascript">
    $(function () {
        $("#ddl").change(function () {
            $('#datepicker').datepicker('option', $.datepicker.regional[$(this).val()]);

Or check the links below:

Best Regards,


May 22nd, 2015 2:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics