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

New Return to Workplace

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

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

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,575)