Page 1 of 1

Change date format from mm/dd/yy to dd/mm/yy

PostPosted: 24 Mar 2014, 01:20
by JohnDal
I am looking to amend the date format on the bookingform which customers use to check availability or make an enquiry. Check in date and check out date format is confusing for UK customers. I have looked in protected files and can't locate where to change. I would appreciate your help. Thanks. John.

Re: Change date format from mm/dd/yy to dd/mm/yy

PostPosted: 24 Mar 2014, 06:31
by Xpycm
'public static function getYiiDateFormat' method in the protected\modules\booking\models\Booking.php file
Code: Select all
public static function getYiiDateFormat() {
    
$return 'MM/dd/yyyy';
    if (
Yii::app()->language == 'ru') {
        
$return 'dd.MM.yyyy';
    }
    return 
$return;


and Dashboard -> Settings -> Date format on the site