Topic: I'm trying to add time to database

I want to add a time to a new row in the database.
the database have two TEXT fileds and one TIME fileds.
In my form I have 2 textbox for the 2 fileds and I want the time to be the the time that I will press the OK button.
Is there a way to do it?
when I select the "new record" acction for the button I can't add the a time.
I try to use a  datetimepicker but I want it to be update automaticli to the currect time

2 (edited by derek 2020-05-05 11:23:43)

Re: I'm trying to add time to database

Hi,
If you are selecting a new record and can't add the time, I suspect it's because you have not changed the 'kind' property of the datetimepicker field (by default, it is set to 'date').
Also make sure that the 'default checked' property is selected so that the current time is automatically selected.
Please have a look at the screenshot in the attached example project.
Regards,
Derek.

Post's attachments

Attachment icon set time to now.zip 465.55 kb, 227 downloads since 2020-05-05 

Re: I'm trying to add time to database

Thanks.
It's working great.