Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Exception: We cannot convert the value #datetime(2023, 5, 18, 0, 0, 0) to type Date..
when trying to convert or pass a date parameter into a query in power query mode.
conversation syntax:
Date_text = Date.ToText(Date_value)
Date_value is of date data type. I've also tried using
Date_text = Date.ToText(Date_value, "mm/dd/yyyy")
Date_text = Date.ToText(Date_value, #duration(1, 0, 0, 0))
I am using direct query mode.
Try Date.ToText(Date.From(Date_value), "MM/dd/yyyy" ) instead
Pat