641
Views
6
Comments
OS11 - invalid date prompt Controls\DatePicker
Question

Hi,


Where using the Controls\DatePicker when the date is not set it shows invalid date see sceenshot.

Can this be changed?

2018-09-20 16-19-54
João Miguel Frausto Martins
Staff

Hi freek,

I've done some tests in O11, and I was only able to reproduce this, when the text variable that is used in that input, has a value that isn't a date, such as "abc" for example, those are the only times I am able to get the "Invalid date" text inside the input. So you're probably using a variable that already has a value assigned to it.


Best regards

UserImage.jpg
freek



2018-09-20 16-19-54
João Miguel Frausto Martins
Staff

I think this issue might be something else. In your example, Service Studio is accepting date values, in this format "YYYY-MM-DD", however the dates being returned for example in the birthday record have either this format "DD-MM-YYYY" or "MM-DD-YYYY".


I think the configurations of the environment you are using, have been changed to use dates in another format (either "DD-MM-YYYY" or "MM-DD-YYYY", not sure which one), but then all the components in your environment haven't been updated to use dates in that format. This is what I think might be the issue, but this is not my area of expertise, so I can't help you much.

UserImage.jpg
freek

UserImage.jpg
freek

Anyone else a idea?

2022-07-07 18-45-50
Niels Favreau

This is an issue that is already present since quite some time I think.
Was your date format in service center in a different format before?

If so, the browser still thinks your old format is the valid one (for the elements that already existed), instead of the new one. You can clear your browser cache and it will solve the issue.

Or try to re-add the textbox and calendar picker.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.