We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12379
    • 460 Posts
    How do I format the TV "Start" as a date using Ditto? "Start" TV is set in UnixTime, however, the call below is not formatting it as I require - it’s still appearing in UnixTime.

    [[Ditto? &documents=`[*id*]` &dateSource=`Start` &dateFormat=`%A %d, %B %Y` &tpl=`EE_Start`]]


    {{EE_Start}}
    [+Start+]
      Mostly harmless.
      • 36592
      • 970 Posts
      [+Start+]

      It should be
      [+date+]
        • 12379
        • 460 Posts
        But [+Start+] is the user-defined TV date. isn’t [+Date+] for the defaults like createdon, published etc?
          Mostly harmless.
          • 36592
          • 970 Posts
          Quote from: hotdiggity at Mar 13, 2009, 12:11 AM

          But [+Start+] is the user-defined TV date. isn’t [+Date+] for the defaults like createdon, published etc?
          Ditto reads UNIX time value from TV/modx variable specified by &dateSource
          and outputs it as a placeholder ([+date+]) in the Ditto template formatted by &dateFormat.
            • 12379
            • 460 Posts
            oh ok, thanks.
              Mostly harmless.