How to change date format

lid3rs

No avatar

2007-11-02 13:12

Hello, my question is, where could i find the date format parameter in php.? I would like to change ot for example to d:m:Y not with '-' separator.

Thnx, good script =)

» Quick.Cms v1.x

treewood (OpenSolution)

Avatar: treewood

2007-11-05 08:13

lid3rs -
1. edit core/pages.php, throwPage() and change date( 'Y-m-d H:i', $aList['iTime'] ); to what You want
2. edit actions_admin/pages.php and add:

$aData['sDate'] = date'Y-m-d H:i'$aData['iTime'] );

to after

$sPagesSelect       throwPagesSelectAdmin$aData['iPageParent'] );


You must insert/change date in admin area in format yyyy-mm-dd h:m:s but in throwPage() function You will recieve in client side what You want.

Back to top
about us | contact