Nico Knoll Posted May 3, 2013 Share Posted May 3, 2013 Hi, how do I get the timestamp of a datetime field for using in the frontend? I thought about $page->datetime->timestamp(); Greets, Nico Link to comment Share on other sites More sharing options...
Soma Posted May 3, 2013 Share Posted May 3, 2013 Maybe like this? $ts = $page->getUnformatted("datefield"); 3 Link to comment Share on other sites More sharing options...
diogo Posted May 3, 2013 Share Posted May 3, 2013 hm? I think simply with $page->datetime edit: just define output to none Link to comment Share on other sites More sharing options...
Nico Knoll Posted May 6, 2013 Author Share Posted May 6, 2013 Thanks, Soma! Exactly what I needed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now