Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Insert date value to azure sql error (Conversion failed when converting date and/or time from character string)

Hi All,


I have an app which takes selected date from date pickup box and store in Collection. Then it will retrieve from Collection and save into azure sql after confirmation. It runs smooth until few days before, it started to show "Server response: [database table name] Conversion failed when converting date and/or time from character string."  in the step of patching data into sql. 


It's strange that it did not have this problem when the mobile phone OS is english, other than that, eg. the OS is in chinese language, it will display the above error event it's a mac computer in english OS. 


The field type in SQL is "Date" and format like "2020-12-14"


In the patching script, the error still displayed even I tested using Now() like below. 


{ input_dt: Now() }


My previous script is below and it works perfectly before.


{input_dt: DateTimeValue(input_dt)}


* input_dt in Collection is "2020-12-14"


I am not sure any updates on Powerapps, why suddenly pop this error out. 


Thanks All,




Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,131)