As per the docs, I can do this for a date:
new Schema({
date: { type: Date, default: Date.now }
})
But what if I need time?
Looks like that does timestamps too!
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