ShortDate for formatting dat in datagrid
You can do this:
$this->datagridInvoices->setColumnFunction(array('BackendDatagridFunctions',
'getLongDate'), array('[created_on]'), 'created_on',
true);
It takes the date + time setting of the logged in user.
But is there a method to just format to a date (no time)
$this->datagridInvoices->setColumnFunction(array('BackendDatagridFunctions',
'getDate'), array('[created_on]'), 'created_on', true);
Is there something build in by default to do this.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by tijs on 03 Sep, 2011 08:41 PM
Done, https://github.com/forkcms/forkcms/commit/fe02e69c0a8157aa268de8b17...
tijs closed this discussion on 03 Sep, 2011 08:41 PM.
frederik re-opened this discussion on 03 Sep, 2011 08:43 PM
3 Posted by frederik on 03 Sep, 2011 08:43 PM
thx
tijs closed this discussion on 06 Sep, 2011 07:27 PM.