cancel
Showing results for
Did you mean:
Highlighted
Level: Powered On

## Manipulating Flow Excel Date

Hello,

I have an excel table that I want to use to populate a Journal through flow.

The excel table looks like this: The column is formatted to the Date Format:

When Flow Picks up the table (List Rows Present in a Table Action) it is reading this date as a String:

I have tried all sorts of conversions that I can think of but it just doesn't like my string! Does anyone have any idea how I can convert the 43710 to dd/MM/yyyy?

Thankyou fo

1 ACCEPTED SOLUTION

Accepted Solutions
Level 8

## Re: Manipulating Flow Excel Date

Excel stores internally the dates as sequential serial numbers starting from January 1, 1900, to enable calculations.

So you need to define a date for January 1, 1900, and add the value returned by Excel. Notice that that value is serial number 1 so you need to take two days in the final calculation. Why 2? The first is because the count starts at one and not zero, so you need to take that number off; otherwise, you'll. The other one is a little bit more tricky. For some reason, if you only subtract one, it will display the next day.

Here's a structure of steps.. You can do them all in the "compose" action with formula, but I wanted to show each step.

First, the date is a string, so we need to convert it into an int.

`int(body('Get_a_row')?['Date'])`

Then take the two days off

`addDays('01/01/1900',variables('Date'),'dd/MM/yyyy')`

With this, you'll get a date that you can use

If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Level 8

## Re: Manipulating Flow Excel Date

Excel stores internally the dates as sequential serial numbers starting from January 1, 1900, to enable calculations.

So you need to define a date for January 1, 1900, and add the value returned by Excel. Notice that that value is serial number 1 so you need to take two days in the final calculation. Why 2? The first is because the count starts at one and not zero, so you need to take that number off; otherwise, you'll. The other one is a little bit more tricky. For some reason, if you only subtract one, it will display the next day.

Here's a structure of steps.. You can do them all in the "compose" action with formula, but I wanted to show each step.

First, the date is a string, so we need to convert it into an int.

`int(body('Get_a_row')?['Date'])`

Then take the two days off

`addDays('01/01/1900',variables('Date'),'dd/MM/yyyy')`

With this, you'll get a date that you can use

If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Announcements

#### Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Watch Sessions On Demand!

Continue your learning in our online communities.

#### Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

#### Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

#### Microsoft Learn

Learn how to build the business apps that you need.

#### Power Platform World Tour

Find out where you can attend!

#### Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 4 members 3,993 guests
Recent signins: