cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to change date format ?

Hello,

 

How do I change the date format display in my gallery (from a datetime column in SharePoint) from a US format (mm-dd-yyyy) to an European format (dd-mm-yyyy) ?

 

I tried tu use DateTimeValue function but it seems to only works with variable that are in text format.

 

Here is the formula I have when I click on the datetime item of my gallery :

ThisItem.DateEdition (DateEdition is the name of the column)

, I tried to use DateTimeValue on it as DateTimeValue(ThisItem.DateEdition, "fr") but got an error.

 

Thanks for helping,

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

 Try:

Text(ThisItem.DateEdition,

"dd-mm-yyyy")

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
eka24
Super User III
Super User III

 Try:

Text(ThisItem.DateEdition,

"dd-mm-yyyy")

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Anonymous
Not applicable

That's it ! 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (29,548)