Hi,
After investigations in this forum and tests (Function formatDateTime) without no concrete results, I'am asking for help.
I have an Online Excel Table with Date.
I use this flow :
NB : I know the flow isn't maximized. It's just an example to create this case.
My objective : Send a weekly email with filtered informations and DATE
Problem : Dates aren't kept in a good format
How can I keep the date format from an excel to an HTML Table ?
Thanks for your help.
Best Regards,
I have tried all the above solutions, but can't seem to get it working.
I have raised a new post here: https://powerusers.microsoft.com/t5/Building-Flows/Format-timestamp-from-Excel-Online-to-send-mails/...
Can someone please guide me?
Hi @LeeHarris,
I'm using indeed Excel Online.
Thanks for the trick (Function addDays), it's almost working now.
With the expression
addDays('1900-01-01',int(item()['Date']))
the result will be in the HTML Table : 2019-02-02T00:00:00.0000000
Just for the format, I'm using now the expression :
addDays('1900-01-01',int(item()['Date']),'yyyy-MM-dd')
The result will be in the HTML Table : 02-02-2019
BUT I had 2 days of difference between the date in the Excel and the HTML Table.
So I'm using now :
Hi @Neicilef
If you are using the Excel Online connector please take a look at this similar issue.
https://powerusers.microsoft.com/t5/Building-Flows/Excel-dates-turned-into-integers/td-p/130364
There is a comment suggesting the following expression as a workaround to the way Excel Online returns an integer representing the date as the number of days since 01/01/1900.
addDays('1900-01-01',int(YourDateHere))
Hi @LeeHarris
Thank you for taking time.
Below, my first test with input and ouput :
Result : Not working
Below, the test after your post
Result : Not working
Hi @Neicilef
You should be able to control the format of your date field by using the FormatDateTime expression e.g.
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional