I have a SQL Server that I have a query loaded and a date picker attached to the date/time column in the dataset. I am using GridDataSetProvider.
When I set date picker format to dd-mm-yyyy and the dephi new format to same all works perfectly and I can chose a date and save to database with cell edit. As soon as I change to what I really want of dd-mmm-yyyy then date picker shows the right format when selected but then I receive an error "12-Feb-2019 Expense Date: Please, enter valid date value - d-M-Y". The date is in the correct format so what is the issue?
I even tried to change the DateFmt to d-M-Y and that still does not work. If I manually change the short date name to a number, then all saves fine and I just refresh the grid and my short month name appears again.
When I use your date picker in another part of my application I have to convert the format before I try to save to database since SQL Server cannot use 12-Feb-2019 directly. I figured that the datepicker in the grid would take care of that for me but it looks like it does not like d-M-Y format.
I am going to try to catch the event to change the date just before database submit but it looks like something is not working as expected since the error message has the right format in it and seems to just not recognize "M" and only "m" in that format.
Cheers.