cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
Microsoft
Microsoft

Re: Using numbers and dates from SharePoint lists

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,546)