typo3 TypoScript Get date in object


Example

Get current date and time

lib.date = TEXT
lib.date {
  data = date:U
  strftime = %d.%m.%Y %H:%M:%S
  wrap = Today is |
}

Get last login time and date from fe_users

lib.date = TEXT
lib.date {
  data = TSFE:fe_user|user|lastlogin
  strftime = %d.%m.%Y %H:%M:%S
  wrap = Last login is at |
}

Consider url to be http://test.com/page1/?tstamp=1469683852

lib.date = TEXT
lib.date {
  data = GP : tstamp
  strftime = %d.%m.%Y %H:%M:%S
  wrap = Current tstamp is |
}