开发者

jqgrid full month names

开发者 https://www.devze.com 2023-04-01 23:52 出处:网络
I\'ve tried: $grid->setColProperty(\"order_time\", array( \"formatter\"=>\"date\", \"formatoptions\"=>array(\"srcformat\"=>\"Y-M-d\",\"newformat\"=>\"d/M/Y\"),

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开发者_Go百科

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消