ShortDate for formatting dat in datagrid

frederik's Avatar

frederik

31 Aug, 2011 04:55 PM

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.

  1. Support Staff 2 Posted by tijs on 03 Sep, 2011 08:41 PM

    tijs's Avatar
  2. tijs closed this discussion on 03 Sep, 2011 08:41 PM.

  3. frederik re-opened this discussion on 03 Sep, 2011 08:43 PM

  4. 3 Posted by frederik on 03 Sep, 2011 08:43 PM

    frederik's Avatar

    thx

  5. tijs closed this discussion on 06 Sep, 2011 07:27 PM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

18 Apr, 2013 09:26 AM
24 Apr, 2013 01:00 PM
17 May, 2013 11:31 PM
17 May, 2013 09:24 AM
09 Sep, 2012 04:09 PM

 

16 May, 2013 09:04 AM
05 Dec, 2012 09:30 AM