Page 1 of 1

day and yesterday webtags

Posted: Sun 20 Aug 2023 7:02 pm
by AndyKF650
Hi there

I am working on one of my reports which details changes between today and yesterday.

My issue is trying to get a date format as dd mmm ie 20 Aug. Using the <#day> <shortmonthname> works just fine for the "today" heading but not for yesterday. I tried <#day d=-1> which did not work and <#yesterday> only gives 19/08/23 rather than the 19 Aug that I would like.

Does anyone have an easy solution for me please.

Re: day and yesterday webtags

Posted: Sun 20 Aug 2023 10:01 pm
by water01

Code: Select all

#yesterday format="dd MMM">
will do it.

Re: day and yesterday webtags

Posted: Mon 21 Aug 2023 6:02 am
by AndyKF650
Hi @water01

Thanks for the clue for my coding issue. A slight tweak on your suggestion was needed to get the format I wanted. My end result was as follows.

Code: Select all

Today <#day> <#shortmonthname> - Yesterday <#yesterday format="dd"> <#shortmonthname>