So don't send the date and time from your application and let the database do this step for you Ex:
if you want to save the login time of every user then excute sql query and inside the query call the datetime function in your database
insert into logs ( loginTime ) values ( now() ) ;
for sure this statement will be different from database to another