Home > SharePoint > Date Time problem with Date datatype in SharePoint

Date Time problem with Date datatype in SharePoint

Have you noticed that When trying to SharePoint metadata column which use a Date/Time list column, the content in database is stored with 12:00:00AM added along with the date, even if the the column was specified as date only.

Solution: Use another column of type Calculated column of type “Single Line of text” and use the below mentioned formula.

=MONTH([This is My Date Col])&”/”&DAY([This is My Date Col])&”/”&YEAR([This is My Date Col])
Isn’t that easy ?

Advertisement
Categories: SharePoint
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.