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

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

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

Postby JohnDal » 24 Mar 2014, 01:20

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.
JohnDal
Stranger
 
Posts: 1
Joined: 24 Mar 2014, 00:17
Reputation point: 0

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

Postby Xpycm » 24 Mar 2014, 06:31

'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
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 39 guests