I have a table called Students , in this table there is a date column called BirthDay with Date, abbreviated format (eg : 26/06/2017), the problem is in delphi the Field type is SQLTimeStamp, and I want to save just the Date not a DateTime.
DM.TStudentsBirthDay.Value := DateTimeToSQLTimeStamp(DateTimePicker1.Date);
That will post a DateTime.
How can I fix this? How can I insert just the date?
Update :
I try to do it with TFDQuery component and it works perfectly , also with TAODTable component.
TStudentsBirthDay? Which FireDAC component do you use? Do you use LiveBindings? - VictoriaTStudentsis FireDac table ,BirthDayis the field , I'm usingTFDTablecomponent , and no I'm not using LiveBindings. - IlyesTDateFieldthen. - Victoria