I have a function that sends an ajax request to a server file with parameters. The problem is that I want to send the current DateTime value to compare it with the database.
as the MySQL datatime format, all dates are dated as the format "2012-02-03 19:50:28".
How can I generate it in Javascript.
Another question: can I add the clock to the current time and time (to fix the problem with the server’s time zone)
Thanks in advance
source share