Answer the question
In order to leave comments, you need to log in
How to display date + n days in modx?
Good afternoon, how to display the date in modx, which will come in a few days? And most importantly, that she would understand that after 01/31/21 comes 1.02, and not 01/32/21
Answer the question
In order to leave comments, you need to log in
In general, modx has nothing to do with it. You need a date from the current day?
$date = strtotime("+7 day");
echo date('d.m.Y', $date);
You can create an extra snippet (for MODX this is an extra database call), or you can use output modifiers that can do a lot, and this too: Date modifier date
30.12.2024
formats .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question