SharePoint How to change date Format on a site or
list?
Steps Involved: Please follow steps below to update date format
1. Change Date Format for a particular site or subsite.
We would like to change date and time format from the USA
to the UK for all list and library etc. Please find below screenshot just for your
reference and compare.
To achieve this we have made changes in site Regional settings using below
steps and this change will update date and time everywhere in your site list
and library etc.
a.
Go to "Site settings"
b.
Under the "Site
Administration" Section click on "Regional settings".
c.
In "Locale"
choice select desired option; example format DD/MM/YYYY you need to select
"English (United Kingdom)" and Click OK button.
2. Change Date Format for particular list column.
a. Go to Your List where you would
like to see Formatted date and Time
b. I have list name Event List and have
a column called Event Date in my list, currently its displaying SharePoint
Default date and time format based upon current regional setting.
c. Now we would like to display a date
in the different date and time format as shown in below picture, we have added
three new column to display different date and time format.
d. To achieve this we need to add a calculated
column and use sample code below. Also please feel free to add the pattern as
per your desired output.
Column
Name
|
Calculated Column
Formula Value
|
Event_Date_Formated_dd mmm
yy
|
=TEXT(EventDate,"dd mmm
yy")
|
Event_Date_Formate_MMM-DD-YYYY
|
=TEXT(EventDate,"mmm-dd-yyyy")
|
Event_Time_Formated_HH-MM
|
=TEXT(EventDate,"HH-MM")
|
Note: This kind of Date and
time format we can only achieve via only calculated column not changes regional
setting of site.
Summary
Thus, We have learned here now how to change date Format for a single list column or change Format for whole sub site on on-Premise SharePoint versions sites.
Thus, We have learned here now how to change date Format for a single list column or change Format for whole sub site on on-Premise SharePoint versions sites.
1 comments:
I was going for the DD/MMM/YY format. Working correctly, but for the blank fields it is showing like 30/Dec/99. How not to calculate for the blank fields?
Post a Comment