Change SharePoint default date time format to dd MMM yyyy - sharepoint

How do we change SharePoint default date time format to dd MMM yyyy( e.g., 1 May 2013),
We can change regional setting to change date format but i can not find anything which display month as word.
I am referring following article it seems working except dd MMM yyyy format ( e.g., 1 May 2013). I've notice issue with displaying month in word, other format seem working.
http://sharepointex.blogspot.in/2007/09/how-to-modify-date-format-in-sharepoint.html
Any idea why it month name is not displaying as expected?
Regards,

For Sharepoing 2010 Regional Settings are hidden for the Central Admin site collection. However, you can get to them by typing the url (substitute mysharepointserver:port for your central admin web application).
http://mysharepointserver:port/_layouts/regionalsetng.aspx

I understand that you want to change the format of date& time columns for a SharePoint Site .Here are two options :
1.You can modify the view of the view in SharePoint Designer to format the date &time column . Change the formula to ddwrt:FormatDate(string($thisNode/#*[name()=current()/#Name]),1033,7) .
2.You can Modify the Regional Settings for the site collection .Change the Locale to other countries ,the date format will change automatically for all the existing data &time columns .
I have tried with German and its date &time format is like dd mm yyyy .

Just change the Locale from Site's Regional Settings within Site Administration > Regional settings.
I have tried with SharePoint 2013
Thanks,
Chiranthaka

I understand you need a global site setting; however if you opt for the field by field format, you can format to a specific format by specifying "dd MMM yyyy" explicitly in your XSL.
<xsl:value-of select="ddwrt:FormatDateTime(string($thisNode/#*[name()=current()/#Name]) ,1033 ,'dd MMM yyyy')"/>
http://afsawaf.blogspot.com/2013/12/sharepoint-2010-format-view-date-format.html
Good luck!

Related

How to get English month name from date in Russian Excel?

I am unable to get month name in Excel.
Neither =TEXT(...;"mmmm") not doesn't work.
I found, only Russian M's are working and giving Russian month name, despite of language settings
Latin M's give nothing.
Are there any other settings to force month name language?
UPDATE
Setting date format nationality didn't help:
Thanks for additional details. It appears to be a long standing issue with MS Office. See How to prevent Excel to use the OS regional settings for date patterns in formulas for a related issue and some partial solutions.
In particular, hardcoding using CHOOSE might be your way to go:
=CHOOSE(MONTH(B2);"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec")
Also see Scott Craner's comment regarding =TEXT(B2;"[$-0409]MMMM") which looks like a quick fix. But note that the MMMM has to be in your locale, so the spreadsheet might not be portable. The CHOOSE option would be better in this case.
I found a way to fix this problem. First you need to go to Excel options and click "Advanced". After that, you need to scroll down to the bottom of this page and edit the "Edit Custom Lists..." button located in the "General" tab. Image for first step
Finally, you should add your own lists by clicking NEW LIST.
Image for final steps
January
February
March
April
May
June
July
August
September
October
November
December

CRM Date Format In DD/MM/YY

I want to display the date in date field on CRM form as "DD/MM/YY".
Language must be "U.S(English)".
Here, problem is that in mentioned above language date does not have the format like "DD/MM/YY"
But if we change language to other language like Urdu, Korean then we can get the above mentioned date format BUT if we change the language user faces problem to access CRM.
Does anybody have any idea that how to display the date on the form in above mentioned Date-Format.
Here is the screen shot that I am facing problem to display the date format (DD/MM/YY) in CRM 13 online.
Any kind of help, will be appreciated.
Thank,
Anish
The date format is a personal setting for each CRM user. Each user can choose the date format they prefer starting from a language list.
Not all the date formats are available after a language is chosen, in your case the date format dd/MM/yy is not available under English (United States).
Steps to change the date format
For CRM 2011 the option is under File -> Options -> Formats.
For CRM 2013 you need to click on the rowel beside the image user on the top right corner, select Options and then Formats.
There is also this utility to update the settings for all users programmatically:
http://crm2011usersettings.codeplex.com/
or
http://crm2011silverlight.codeplex.com/

Powershell dates to Sharepoint Dates

I have an old site that I am trying to convert to sharepoint. I have a database that stores the original upload date of the document. I need to get that date into a sharepoint column called "Original Upload". The "Original Upload" column is in a date/time format and only displays the date like "10/5/2009". I created a Powershell script to grab the date from the database and use it to change the "Original Upload" date in sharepoint. The problem is I keep getting a powershell error of "invalid date/time".
Powershell formats the date from the database as "Friday, May 06, 2011 7:52:12 AM". Sharepoint does not accept this date format. Sharepoint also does not accept strings. I was able to change the format of the powershell date to "5/6/2011" (the format on the sharepoint site), but it is converted from an object to a string, which doesn't work.
How do I convert a powershell date to "5/6/2011" and keep it as an object so Sharepoint will accept it?
Thanks
Sharepoint accepts iso date format which have format:
yyyy-MM-ddThh:mm:ssZ
in your example:
2011-05-06T07:52:12Z

How to format a SharePoint ListItemProperty Date Field

I've got a SharePoint (2010) list with a date field on it.
Now in my custom display form I can go ahead and add the field
<SharePoint:ListItemProperty Property="MyDateField" runat="server" id="ListItemProperty1" />
which results in the following output
21.02.2011 15:44
How can I tell SharePoint to format the Date to
21.02.2011
The only way so far seems to be to create a new calculated column based on that date field and do the formatting within the field definition, but that kind of seems to be the wrong way.
Any help would be much appreciated.
When you create the "Date" column in the list, there is option to select: 1)Date only ; 2)Date and time.
If you select the first option, then in the display form, only the date is shown
I had a similar task to perform recently, but the client wanted the time stored as well as date, just not to display the date.
The way I got around this was to create a Calculated Column which displayed the date in the format required, and I then just pointed my field control to display that column.
The calculated column had this formula:
=TEXT([News Article Date],"dd MMMM yyyy")
FYI: this was in a page layout.
Please see http://panvega.wordpress.com/2008/12/08/ddwrtformatdate-with-different-formatflags/ for custom pages.
programmatically (powershell):
$web = get-spweb http://thingy/
$list = $web.lists["List Name"]
$datefield = $list.fields["Date Field"]
$datefield.displayformat = [microsoft.sharepoint.spdatetimefieldformattype]::dateonly
$datefield.update()

Sharepoint 2007 calculated Date field shows incorrectly in non-US region

If a SharePoint user (with Regional Settings set to UK) views a calculated date field in a View details form, the field shows incorrectly.
I am using:
ddwrt:FormatDateTime(string(#RenewalDate), 1033, 'dd MMMM yyyy')
Which shows 04 January 2010 for 01/04/2010 and, doesnt show unresolvable dates such as 31-Dec-2010.
This applies even with a simnple =[Modified] formula
The Server is set up in the US for that locale.
could you change the formula as simnple =[Today] and check doest it works?
please try with the below formula
=IF(NOT(ISBLANK([Modified])),DAY([Modified])&" "&TEXT([Modified],"mmm")&" "&YEAR([Modified]),"")
And it is working fine for me. Pls try it and let me know what you are getting.

Resources