am new to Jquery. I want to insert current date time to Db
var data{
"id":1,
"name":"mybane",
"datetime":// here i have to put current date time
}
is there any possible way to get the current date time..
Use this:
var data{
"id":1,
"name":"mybane",
"datetime":new Date(),
}
Reference: How do I get the current date in JavaScript?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With