Search code examples
javascriptjqueryjqgridjqgrid-formatter

jqgrid full month names


I've tried:

$grid->setColProperty("order_time", array( 
    "formatter"=>"date", 
    "formatoptions"=>array("srcformat"=>"Y-M-d","newformat"=>"d/M/Y"), 
    "search"=>false 
   ) 
);

I got wit this something like: 27/Oct/2011

I've also tried :

"formatoptions"=>array("srcformat"=>"Y-M-d","newformat"=>"d/MM/Y"), 

But I got something strange... 27/OctOct/2011

How can i get the date this format : 27/October/2011


Solution

  • http://www.trirand.com/jqgridwiki/doku.php?id=wiki:predefined_formatter#predefined_format_types

    The definition of the date format uses the PHP conversions.

    So you can look them up here: http://php.net/manual/en/function.date.php