Anyone else noticed an issue when using DateValue() or DateTimeValue() on iOS?
It works in the browser but doesnt display anything on iOS.
Works as expected without datevalue or datetimevalue but I don't like the formatting.
My code is :
Concatenate(Text(DateTimeValue(OutboundDateTime),"dddd mmm yyy - ")," ",Text(DateTimeValue(OutboundTime),"hh:mm AM/PM"))
but it doesn't display... Any ideas / work-arounds?
Thanks
Solved! Go to Solution.
I managed to get it working with the following
Concatenate(Text(DateValue(DataCard12.Default,"en"),"ddd dd mmm yyyy")," - ",Text(TimeValue(OutBoundTimeCard.Default,"en"),"hh:mm AM/PM"))
Not too sure what the issue was though but thanks for getting back to me
What is the value of `OutboundDateTime`? Is it a text value, a date value, something else?
I tried the following formula, and it worked fine both on Windows and iOS:
Concatenate( Text(DateTimeValue("2016-07-08T17:15:00"), "dddd dd mmm yyy -"), " ", Text(DateTimeValue("2016-07-08T17:15:00"), "hh:mm AM/PM"))
And it displayed "Friday 08 Jul 2016 - 05:15 PM" as expected.
I managed to get it working with the following
Concatenate(Text(DateValue(DataCard12.Default,"en"),"ddd dd mmm yyyy")," - ",Text(TimeValue(OutBoundTimeCard.Default,"en"),"hh:mm AM/PM"))
Not too sure what the issue was though but thanks for getting back to me
Whats happening here MS, this was first reported in 2016!
DateTimeValue doesnt work on ios and flows fail to run because of it.
It works fine on desktop.
Few examples
Sending Date to Flow for SQL:
Text(DatePicker1.SelectedDate,"[$-en-GB]yyy-mm-dd") & " " & Left(0730,2) & ":" & Right(0830,2) & ":00.000"
This works fine on desktop but not ios.
DateTimeValue:
DateTimeValue(Text(DatePicker1.SelectedDate,"[$-en-GB]yyy-mm-dd") & " " & Left(0730,2) & ":" & Right(0830,2) & ":00.000")
This displays fine on desktop but does not work on ios at all.
You're correct, DateTimeValue fails in iOS - but only if you have millisecond precision. I've opened a bug to the appropriate team to have it fixed.
If you use the expression below (notice the absense of the milliseconds) it should work on both iOS and Windows.
DateTimeValue( Text(DatePicker1.SelectedDate, "[$-en-GB]yyy-mm-dd") & " " & Left("0730",2) & ":" & Right("0830",2) & ":00")
aah, its nice to know its milliseconds that cause it, although im sure i tried without...
It has to be in a specific format from iOS aswell, you have to format as dd/mm/yyy hh:mm for it to accept, trial and error took me ages as from desktop i was using yyy-mm-dd hh:mm and it worked fine
Thanks
User | Count |
---|---|
198 | |
105 | |
88 | |
45 | |
43 |
User | Count |
---|---|
245 | |
105 | |
103 | |
65 | |
60 |