cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Steelman70
Power Participant
Power Participant

Using numbers and dates from SharePoint lists

Here is my take on using numbers and dates from SharePoint lists

 

  1. Number columns will be correctly returned as number type

  2. Dates will be returned as text types, in my case YYYY-MM-DD, hence in order to get a date I decompose the text:
    Date(Value(Left(SP_date, 4)), Value(Mid(SP_date, 6,2)), Value(Right(SP_date, 2)))

  3. However dates will be returned according the SharePoint server time zone and not the user time zone, even if they are dates have no time part.  This is an issue with SharePoint, which also arises for example when you import SharePoint dates into Excel with PowerQuery

  4. Text columns that contain numbers can be converted to a number type by any arithmetic operation or using the Value function

Having played around a bit, here is a summary and some tricks (click to open in popup and then enlarge to full screen)

 

Capture_SP_formats.PNG

1 REPLY 1
DeanWang
Microsoft
Microsoft

Hi,

 

Thanks for your sharing.

 

It’s helpful to those who meets issue when they’re trying to use numbers and dates from SharePoint lists.

 

Thanks,

 

Dean Wang

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,092)