Editor Component - Date null

Editor Component - Date null

juanasapjuanasap Posts: 6Questions: 0Answers: 0

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

  • juanasapjuanasap Posts: 6Questions: 0Answers: 0

    Ok,

    Looking at the code, I saw where the error was so I add some lines.

  • allanallan Posts: 61,805Questions: 1Answers: 10,119 Site admin

    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 as null (if I understand what you are looking for correctly).

    Allan

  • juanasapjuanasap Posts: 6Questions: 0Answers: 0

    Yes,

    That was the trick.
    Thanks

This discussion has been closed.