Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74268

How do I set a timestamp that updates daily on a website, with bootstrap and javascript, which could be useful for reviews and blogs etc.?

$
0
0

I'm interested in setting up a timer/date stamp on my website, which uses Bootstrap, using JavaScript or whatever is necessary. Basically, when you see a review on somewhere like Google, or a blog post, underneath the photo of the person who made the post and their name, there's always a small bit of text that says how long ago it was written, such as '3 hours ago' or '1 month ago'. See the image below.

example photo, for my timer/time stamp question

How would I get something like this set up on an HTML/CSS/Bootstrap website, so that it automatically updates every day? For example, I would want it to say '1 hour ago' an hour after it was posted and '1 month ago' when a month has passed, automatically.


Viewing all articles
Browse latest Browse all 74268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>