Editor Component - Date null
Editor Component - Date null

Hello,
I want to pass a null value for a field that I set type to date. I'm getting this error "String was not recognized as a valid DateTime."
Regards,
This discussion has been closed.
Hello,
I want to pass a null value for a field that I set type to date. I'm getting this error "String was not recognized as a valid DateTime."
Regards,
Replies
Ok,
Looking at the code, I saw where the error was so I add some lines.
Hi,
Using the Editor .NET libraries you can use the
NullEmpty()
formatter to have empty string inputs from the client-side (i.e. the Editor form) written to the database asnull
(if I understand what you are looking for correctly).Allan
Yes,
That was the trick.
Thanks