We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4310
    • 2,310 Posts
    You can only use one of the modx_site_content date fields as PHC doesn’t store the date.
    i.e. pub_date, publishedon, editedon or createdon
    So something like his should give you a formatted date placeholder :
    $params['phc.date']=strftime("%e-%m-%Y", $date$item['pub_date']);

      • 2198
      • 7 Posts
      Thank you for this solution, but it doesn’t work :S

      When I am adding this code to snippet and calling it on my chunk, my snippet call show me nothing.
        • 4310
        • 2,310 Posts
        Oops, typo..
        $params['phc.date']=strftime("%e-%m-%Y", $item['pub_date']);