I currently have a javascript variable which records the current date and time like so:
var time_of_call;
time_of_call = new Date();
and I need to store it in a MySQL database. When I try to upload it, the column just appears blank but I'm not sure what I'm doing wrong. I know it's not a problem with the mysql query because I have tried entering different values and it works OK.
I have the column set to DATETIME and I am uploading the value unformatted. Could someone please explain what I need to do differently?
Thanks for any help
P.s. I can't use NOW() because I am using that to capture the time that the record is actually captured, and this time_of_call records the time a call actually comes in.