Turn datetime into a string

Hi Guys,

Is there a way to turn datetime to string?

e.g. “Posted 2 days ago”

Please see attached for reference.

0 5 78
5 REPLIES 5

Please try something like below in a text type column

CONCATENATE ("Posted ", "
“,TEXT( HOUR(TODAY()-DATE([DateTime]))/24), " days ago”)

Thank you so much, Suvrutt.

It worked great.

Could you also assist with an IF expression to show the time (min & hours) of post if it has not been over 24Hrs yet.

e.g. “Posted 5 min ago” or “Posted 1 hour ago”

Look forward to your answer.

Regards

I think such granularity may not work well in AppSheet app. This is so because unless the user syncs the app, the user may not see something as granular as posted 5 minutes ago.

AppSheet automatic updates take place at about 30 minutes intervals. So please evaluate your requirement in that context.

Also could you please try forming an expression based on the date and time expressions article shared with you? Please feel free to approach the community with your expression if you have any queries in that.

Thank you once again.

You have been a great help.

You are welcome. Of course if you are okay with workarounds , please take a look at the below tip by @Fabian

Top Labels in this Space