This topic is locked

Date Format

1/30/2012 10:59:16 AM
PHPRunner General questions
P
piobote author

Hello,
I have a date field named Date1(dd-mm-yyyy or yyyy-mm-dd)

How Can I get this field in format MM-YYYY in List Page and Search Page.

Example: 25-01-2012 ---> Jan-2012
Thanks

C
cgphp 1/30/2012

Set it as "Custom" field (http://xlinesoft.com/phprunner/docs/_view_as__settings_custom.htm) and enter the following code:

$value = date('M-Y',strtotime($value));