Topic: Show date from tablgrid in datetimepicker

My question is how can I show the Date  from a Tablegrid in a DateTimePiccker box.
I attache my small software

And another Question
How Can I have a reminder with Only the Day (and not the Date and time) ??

Post's attachments

Attachment icon date.zip 4.89 kb, 349 downloads since 2017-11-13 

Re: Show date from tablgrid in datetimepicker

v_pozidis wrote:

My question is how can I show the Date  from a Tablegrid in a DateTimePiccker box.
I attache my small software

procedure Form1_TableGrid1_OnCellClick (Sender: string; ACol, ARow: Integer);
var
    s:string;
begin
    s:=SQLExecute('Select BDay From Person Where id='+Form1.TableGrid1.sqlValue);
    Form1.DateTimePicker1.Date := SQLDateTimeToDateTime(s);
end;

v_pozidis wrote:

And another Question
How Can I have a reminder with Only the Day (and not the Date and time) ??

An example for you:

Post's attachments

Attachment icon Reminder only day.zip 5.99 kb, 408 downloads since 2017-11-13 

Dmitry.

Re: Show date from tablgrid in datetimepicker

Thank's.

DriveSoft wrote:
v_pozidis wrote:

My question is how can I show the Date  from a Tablegrid in a DateTimePiccker box.
I attache my small software

procedure Form1_TableGrid1_OnCellClick (Sender: string; ACol, ARow: Integer);
var
    s:string;
begin
    s:=SQLExecute('Select BDay From Person Where id='+Form1.TableGrid1.sqlValue);
    Form1.DateTimePicker1.Date := SQLDateTimeToDateTime(s);
end;

v_pozidis wrote:

And another Question
How Can I have a reminder with Only the Day (and not the Date and time) ??

An example for you: