Date/Time field dropping time value after .post
Posted: Sat 06 Feb 2016 20:07
Hi All,
I am using version 8.6.21 along with Delphi XE3.
When I post a value to a date/time field the time value seems to drop off.
The code looks something like this:
mysqlqry.Append;
mysqlqry.FieldByName('datefield').AsDateTime := Now;
mysqlqry.Post;
So right before the post the value in mysqlqry.FieldByName('datefield').AsDateTime is 2/6/2016 2:06:19 PM but right after posting it 2/6/2016.
Thanks
I am using version 8.6.21 along with Delphi XE3.
When I post a value to a date/time field the time value seems to drop off.
The code looks something like this:
mysqlqry.Append;
mysqlqry.FieldByName('datefield').AsDateTime := Now;
mysqlqry.Post;
So right before the post the value in mysqlqry.FieldByName('datefield').AsDateTime is 2/6/2016 2:06:19 PM but right after posting it 2/6/2016.
Thanks