We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24129
    • 2 Posts
    I am trying to use [*editedon*] inside another TV

    For instance:

    Variable Name:
    [*post_month*]


    Default Value:
    [*editedon*]


    Widget:
    Date Format - %b

    When I code [*post_date*] in my template I get "Dec" as output. %D for Date Format value yields "12/31/1969"

    The document’s editedon date should be "09/12/2007"

    what am I missing?
      MODx version 0.9.6
      Version codename rev 2767
      • 27708 MODX Staff
      • 2,502 Posts
      That is what the dateformatter will output if the TV is read as Null or 0. Is your TV widget set to unixtime? I think that it needs to be for the date to be read correctly. I have a TV [*event_date*] and it is using Input Type as Date and Widget is Unixtime and it works with the following call: [+event_date:date=`%A, %B %d at %I:%M %p`+] This call is done with PHx installed as I recently found it immensly powerful.

      Let me know...

      All the best,

      Jay
        Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
        • 24129
        • 2 Posts
        Quote from: smashingred at Sep 12, 2007, 08:55 PM

        This call is done with PHx installed as I recently found it immensly powerful.

        What is PHx?
          MODx version 0.9.6
          Version codename rev 2767