Back to Questions

set the date format of the SharePoint DateTimeControl to DD/MM/YYYY

Your Answer

  • 8/26/2013 9:59:57 AM
  • biju~dev01
  • 1

set the date format of the SharePoint DateTimeControl to DD/MM/YYYY

DateTimeControl.LocaleId=  Convert.ToInt32(SPContext.Current.RegionalSettings.LocaleID)

For dd/MM/YYYY you can use

<SharePoint:DateTimeControl ID="dtReviseddate" DateOnly="true"  runat="server" UseTimeZoneAdjustment="false" LocaleId="2057 " />

or

  • 8/26/2013 10:08:10 AM
  • biju~dev01

Back to Questions