Jump to content
Lainkes

Assign Null value to date mySQL

Recommended Posts

Hello,

 

I have a DateTimePicker field. The value (date) is saved to a field in my database (mySQL).

I have a checkbox that indicates that no date is needed when it is checked.

How can I write a Null value to my database instead of a date?

 

Thanks

 

Alain

Share this post


Link to post

I use this

FieldByName('STAT_CLOSED_DATE').AsDateTime := DTP_Close_Dossier.Date;: 

So I wrrte the value of the DateTimePicker to the database. 

The database field is a Date format.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×