Přičtení intervalu k datu
Fragmenty kódu
Šablona
Zítra: {dateDiff(null, "1d")}
Včera: {dateDiff(null, "-1d")}
Za týden: {dateDiff(null, "+1w")}
Před týdnem: {dateDiff(null, "-1w")}
Za měsíc: {dateDiff(null, "+1M")}
Za rok: {dateDiff(null, "+1Y")}
Za rok a měsíc: {dateDiff(null, "+1Y1M")}
Výstup pro 10.1.2011
Zítra: 11.1.2011
Včera: 9.1.2011
Za týden: 17.1.2011
Před týdnem: 3.1.2011
Za měsíc: 10.2.2011
Za rok: 10.1.2012
Za rok a měsíc: 10.2.2012