botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[FormFlow] Invalid dates accepted

Open seca23 opened this issue 9 years ago • 1 comments

Pre-flight checklist


System Information (Required)

  • SDK language (C#)
  • 3.4.0

Issue Description

I have noticed the following dates are accepted and converted as follows when the last day of the month is incorrectly provided:

  1. 31 February 1980 - accepted & resolved as 2 March 1980
  2. 31 June 1980 - accepted & resolved as 1 July 1980

It appears as if these dates are resolved as valid dates. I assume that it is because this could be seen as a common human error, providing the incorrect last day of the month. However, I would like to validate this and tell the user that an incorrect date has been provided.

I have noticed that 32(+) February/March/.... yyyy is not resolved.

Expected Behavior

User types 31 February 1980 for a Date of Birth date. I expect and incorrect date but before I can validate the date, it is already changed to 2 March 1980.

Actual Results

An incorrect date 31 February 1980 / 31 June 1980 that I can validate and provide the user with a validation failed message.

seca23 avatar May 15 '17 13:05 seca23

FormFlow doesn't handle any input validation. You would need to configure a custom solution to handle the validation aspect of this scenario.

nwhitmont avatar Oct 10 '17 01:10 nwhitmont