web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas Power App Form ...
Power Apps
Suggested Answer

Canvas Power App Form error: The string was not recognized as valid DateTime !

(0) ShareShare
ReportReport
Posted on by 7
 

Has anyone experienced a similar issue?

I’ve built a form using Canvas that feeds directly into my SharePoint list. It works perfectly in North America, but users in other regions (e.g., Egypt, UK) have reported an error when clicking Submit:
 

Artwork Request Form failed: The string was not recognized as a valid DateTime. There is an unknown word starting at index 1.
 

 

  • I suspect this issue is related to regional date formats (DD/MM/YYYY in the UK/Middle East vs. MM/DD/YYYY in North America) and how the data source (SharePoint) interprets them.
  • I am using a date picker feeding directly to my SP list (Update function details shown below)
 
If(
    IsBlank(DatePicker1.SelectedDate),
    Blank(),
    DateAdd(
        Date(
            Year(DatePicker1.SelectedDate),
            Month(DatePicker1.SelectedDate),
            Day(DatePicker1.SelectedDate)
        ),
        -TimeZoneOffset(DatePicker1.SelectedDate),
        TimeUnit.Minutes
    )
)
  • I can replicate the issue when I change my Time Zone from (Eastern Tim (US & Canada) to somewhere else


Any guidance or suggestions would be greatly appreciated!​

Categories:
I have the same question (0)
  • BenKraft Profile Picture
    176 on at
    I'm curious, does patching with the DatePicker1.SelectedDate directly lead to time zone mismatches? In Dataverse columns, there is the option to match user local or time zone independent, I'm not sure if SharePoint does the same auto-adjusting.
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @HU-13011540-0
     
    In your case the problem is the manual date conversion. DatePicker.SelectedDate is already a valid Date/Time value, but rebuilding it and adjusting the timezone can break it for users in other regions.

    If your SharePoint column is Date only, you can just use:

    DatePicker1.SelectedDate
    
    Form works correctly across different time zones and regions.
     
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention@Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!
  • Suggested answer
    HU-13011540-0 Profile Picture
    7 on at
       Hi @Kalathiya I have updated 'Update' value of the Data Card from earlier to :
     
    If(
        IsBlank(DatePicker1.SelectedDate),
        DateValue("1900-01-01"),
        DatePicker1.SelectedDate
    )

     
    • This field is optional, so it doesn’t need to return a value.
    • I was also able to reproduce the issue by changing my time zone to UTC +2 (Cairo), which is where some users are encountering the problem.
    • As a workaround, I forced the field to always return a value - even when the date is left blank—by assigning a default value of 1900‑01‑01 when no date is entered.
    • This approach worked for me in North America (esp. after adjusting my time zone), but users in the affected regions are still experiencing issues. :(
    What am I missing?
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Firstly @Kalathiya is on the right track for the main issue, but I think you have another quirk of trying to send Blank() to a Date field. Also a Date Picker may not be truly blank.
    If(
       Value(DatePicker1.SelectedDate) < 1,
       DatePicker1.SelectedDate,
       DateAdd(
          DatePicker1.SelectedDate,
          -TimeZoneOffset(),
          TimeUnit.Minutes
       )
    )
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn   
  • HU-13011540-0 Profile Picture
    7 on at
    Thank-you guys : 
    @Kalathiya, @WarrenBelz

    its true, I have set the date picker optional , meaning below may not cut - Unless I make it mandatory (and I am seriously considering esp after given so much time to this issue. 
     
    DatePicker1.SelectedDate

    Power apps is very picky about formulas and Copilot suggests the following :
     
    If(
        IsBlank(DatePicker1.SelectedDate),
        Blank(),
        DatePicker1.SelectedDate
    )
    
    But I am sure I had problems when i tried to pass blank dates in the past hence my workaround to come up with a bogus date (1900-01-01)


    Currently , form submissions work reliably in North America, and earlier issues in the Middle East, UK, China were resolved. However, some users in China and Japan still experience the DateTime error, preventing successful submissions. BIOS and Windows updates were completed, but the issue persists !
    In China 2 people in the same office can submit while the 2 other cannot. Japan, no success as of yet !
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    The reason I use Value(DatePicker) < 1 is that when a Date Pcker is cleared, it seems that it is not truly blank. If you want to clear a date field, another hack I use is to put a Date Picker on the screen (I call mine dpBlank ) with no DefaultDate and hide it, then patch dpBlank.SelectedDate back to the field you want to clear.
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
  • HU-13011540-0 Profile Picture
    7 on at
    Thanks 

    I have used the snippet you suggested and ask ASIA to re-test since China and Japan are particularly experiencing the problem. 
    If(
       Value(DatePicker1.SelectedDate) < 1,
       DatePicker1.SelectedDate,
       DateAdd(
          DatePicker1.SelectedDate,
          -TimeZoneOffset(),
          TimeUnit.Minutes
       )
    )

    I am trying to consolidate the feedback as we speak but an interesting remark came up. Apparently issue persists if a date picker field is left blank but seems to OK (form submits) if date is selected ! I will have to see if this is consistent ~ Does it make sense ?
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    I am not an authority (far fform it) on multi-region compatibility, however I can note that what I posted works fine for me in Australia.
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn   

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard