Hi PowerUsers, I am trying to convert a text string into date in powerapps by using DateValue function but it gives me a random date which is not the actual string which is passed to this function.
I have a string like "30/04/2020" and I am trying to format it as "2020/04/30".
Passing this text directly in Text( ) function doesn't work, I have tried Text("30/04/2020", "[$-en-US]yyyy/mm/dd").
I know I have to pass it in DateValue function first to make this conversion but when I pass it to DateValue ( ) function the result is altogether wrong, I am trying this Text(DateValue("30/04/2020"),"[$-en-US]yyyy/mm/dd"). It returns me this date "2022/06/04".
I am stuck on this thing, any workaround is appreciated.
Looking forward to an early and helpful response.
Regards,
Ali Nawaz