Dear Experts
I have been practising with datetime conversion from string to datetime format and I am really struggling
Below the flow
but when I run it , I get the following error
Unable to process template language expressions in action 'Compose' inputs at line '1' and column '2437': 'In function 'formatdatetime', the value provided for date time string '14/02/2021 15:32' was not valid. The datetime string must match ISO 8601 format.'.
Any help please?
Thanks man !!
Thank you Sir, you are a star
@Anonymous
Expressions used
split(variables('Datetime'),' ')
split(outputs('Compose_2')[0],'/')
formatDateTime(concat(outputs('Compose_4')[2],'-',outputs('Compose_4')[1],'-',outputs('Compose_4')[0],' ',outputs('Compose_2')[1],':00'),'yyyy-MM-dd HH:mm')
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
@Anonymous You need to use split expression here.
Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.
That is the error I am getting .. my question is how do I do that ?
@Anonymous As clear from error message your date is not in ISO 8601 format. you may need to break it apart and rearrange it to the correct formatting to use it as a DateTime string. Make you date in this format- 2021-02-14T11:59:00
2021-02-14T11:59:00Z
20210214T115900Z
Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.
Pstork1
20
Most Valuable Professional
Gprior
19
stampcoin
16