Forum Academy Marketplace Showcase Pricing Features

How do a make a post show how many minutes ago it was created, rather than the standard date created

is there a way to keep track of how many minutes ago a post was created?

The easiest way to do this is to insert dynamic text that calculates 'current date/time - (minus) this post’s created date/time. The resulting text will be the difference between the two dates. There is also a date range feature that may be applicable: https://bubble.io/reference#Data.Messages.date.to_range

2 Likes

Here’s a super easy way:

Current date/time:extract UNIX - [whatever data type your post is]'s Creation Date:extract UNIX / 1,000 / 60.

Should display exactly how you want it to.

UNIX will give you a representation of each time in milliseconds, which you divide by 1,000 to convert into seconds, and then divide by 60 to convert into minutes.

7 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.