Powerful relative time feature of custom fields
Photo by Jon Tyson on Unsplash

About 2mn to read

Hello super joomlers!

Let's say you want to add

...
Read more: Hello super joomlers!

Let's say you want to add a calendar custom field for some event (business, party, meeting)
and you want to have a default datetime for the event that is let's say 3 days from now.
The start date is now.For just 3 days it seems easy to calculate in your head,
but what if you don't want to bother do that and rather say something like:
Hey Joomla! I wanna 3 days from now please. Can you do that? Sure.

  1. Create two custom fields of type calendar: start-date and end-date
  2. Set default for start date by typing now
  3. Set default for en d date by typing now +3 days

That's it change and experiment with other values it should work.

  • About the author:

    Hi! Alex here,

    Joomla Developer since 2009, focused on Web Services since 2017,

    first in Joomla! 3 with jBackend and com_api

    More recently Web Services in Joomla! 4.x core.

    I like paperback format books, challenging projects and defensive cybersecurity "Blue Team".

    That's all for now. Have a delightful day.