I have made a table with personal information with DOB as "Date" type. When I select the entire table in the terminal, it shows the correct format(YYYY-MM-DD). However, when I created an connection through node.js and output to the console, it was printed as a JSON object where the DOB now has hh-mm-ss behind the actual date?
For example one of my column has DOB as "1996-03-06". However, when it is passed to the node.js server and printe to the console log, it became "1996-03-0605:00:00.000Z"
What is more strange is that when I send this information to Ajax to print to the web, the output is actually something like this: Wed Mar 06 1996 00:00:00 GMT-0500 (EST), which is different from both the actual data and the data that was shown in the console