Problem: When I print time in my HTML code it shows like this: 2020-05-31 03:29:50.617897
Code: https://i.sstatic.net/HTIXy.png
Question: How to get rid of decimal .617897? Thank you. I'm new to programming.
In Postgres, you can use date_trunc():
select date_trunc('second', current_timestamp)
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