web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / PVA - Date Input Adapt...
Copilot Studio
Unanswered

PVA - Date Input Adaptive Card + Power Automate Flow: Incorrect Date Output

(0) ShareShare
ReportReport
Posted on by 16

Hi,

I have a PVA which allows people to request Holiday Cover. I have:

 

  • An adaptive card (see bottom of question for code)
  • A Power Automate Flow which changes the output date from US to UK format (it works perfectly)
    • stanswell84_0-1687363654824.png

If I select dates in January, February and March the Output before and after the Date Format flow is correct and the dates match 

stanswell84_1-1687363691711.pngstanswell84_2-1687363699409.png

 

stanswell84_3-1687363704634.png

 

However, if I start selecting dates from April onwards, the post flow output puts the dates back by 1 day. Looking at the Flow Run, the dates that Flow is receiving from the PVA (see below) are 1 day back instead of correct:

 

stanswell84_4-1687363730356.pngstanswell84_5-1687363740518.png

 

Does anyone know why it is doing this and how to correct it?

 

stanswell84_0-1687363944359.png

 

I have the same question (0)
  • Pstork1 Profile Picture
    68,925 Most Valuable Professional on at

    The dates are being handled as UTC time and you are running into an issue when Daylight Savings time starts.  That's why it happens at the end of March beginning of April.  The date is always handled as though it was midnight on that day. When daylight savings starts its treating it as though it were yesterday at 11:00PM instead of midnight.

  • Shelzinho Profile Picture
    4 on at

    Interesting to see your solution. May I ask how you managed to input a date from PVA and pass it as a string to Power automate. I’m currently stuck at this. I have an adaptive data card to take the inputs which consist of two dates but I’m unable to pass it to flows as I can’t convert the dates to string format to pass to the Flow. 

    @stanswell84  @Pstork1 

  • Pstork1 Profile Picture
    68,925 Most Valuable Professional on at

    If you are using the new editor you can use PowerFX functions in the Set Variable action.  Using PowerFX you can format the date as a UTC string.  That is what Power Automate is expecting.

    image.png

  • Shelzinho Profile Picture
    4 on at

    I did see the formula tab but I'm not able to select the output from the adaptive data card in the formula section. I tried Text(varStartDate) but it couldn't find varStartDate or for that matter any of the variables set before that step. 

  • HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @Shelzinho,

     

    To reference variables in Power Fx in PVA, you need to prefix the name with Topic. (for topic-level variables) or Global. (for global variables).


    E.g.:

    Text(Topic.varStartDate)

     

     Henry

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 133

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 130 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 36 Super User 2026 Season 1

Last 30 days Overall leaderboard