Meddysong Posted December 10, 2018 Share Posted December 10, 2018 I'm working on a template for a Pages database and would like to customise how the publish date displays. I know I can use {datetime="$row->record_publish_date"} to get the full date but I'd like to be able to produce the day, month and year components separately. I know a little bit about how PHP formats dates but I'm afraid that I don't know how to apply that knowledge in this environment. Could anybody kindly offer some pointers? Link to comment Share on other sites More sharing options...
sobrenome Posted July 8, 2019 Share Posted July 8, 2019 I have a more strange problem. In one database the code works for the date and does not work in another: {datetime="$record->record_publish_date"} Link to comment Share on other sites More sharing options...
newbie LAC Posted July 8, 2019 Share Posted July 8, 2019 4 hours ago, sobrenome said: I have a more strange problem. In one database the code works for the date and does not work in another: {datetime="$record->record_publish_date"} {datetime="$record->_publishDate"} Link to comment Share on other sites More sharing options...
sobrenome Posted July 8, 2019 Share Posted July 8, 2019 5 hours ago, newbie LAC said: {datetime="$record->_publishDate"} Did not work. 😕 Link to comment Share on other sites More sharing options...
sobrenome Posted July 8, 2019 Share Posted July 8, 2019 When I do print_r ($record); I get: [record_edit_time] => 1562080148 [record_publish_date] => 1562077740 So the data is there. The problem is with the datetime function: {datetime="$record->record_publish_date"} {datetime="$record->record_edit_time"} How to solve it? Link to comment Share on other sites More sharing options...
sobrenome Posted July 9, 2019 Share Posted July 9, 2019 Now it’s working. I suppose was something related to cache. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.