How to get the Date of Monday of the next Week in Typoscript?

时间:2016-07-12 09:22:19

标签: date typo3 typoscript

I 've got some TypoScript like that:

lib.kalenderwoche = COA
lib.kalenderwoche {
  10 = TEXT
  10 {
    #data = date: U
    #strftime = %d.%m.%Y
    #noTrimWrap = || - |
  }
  20 = TEXT
  20 {
    data = date:U + (7*86400)
    prioriCalc = 1
    strftime = %W
    wrap = |
  }
}

But how i calculate the first monday of next week?

1 个答案:

答案 0 :(得分:0)

正如Jost所述,它将与strtotime stdWrap一起使用。

lib.kalenderwoche = COA
lib.kalenderwoche {
  10 = TEXT
  10 {
    data = date:U
    strtotime = next Monday
    strftime = %d.%m.%Y
  }
}