• Resolved selvamtech

    (@selvamtech)


    Hi all ,

    Please provide the solution for change the date format,while select the date via calender ,its showing dd-mm-yy in text box, i need mm-dd-yy, am using mobile caleder shortcode.[APCAL_MOBILE]. While change the code in appointment-calendar-mobile.php, it’s not affecting, please help me. and also admistrator section also needs to change the date format..

    Thanks
    selvamtech

    https://www.ads-software.com/plugins/appointment-calendar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    to change date format in appointment-calendar-mobile use these given bellow instructions

    1. get code from attached url https://pastebin.com/yA0gCTKf

    2. go to in your plugin directory >> appointment-calendar-mobile.php and replace all code here

    /* these is for admin calendar */
    1. go to in your plugin directory
    2. select menu-pages folder.
    3. open calendar.php file
    4. go to line number 207 and add this line
    document.addnewappointment.appdate1.value = jQuery.datepicker.formatDate(‘mm-dd-yy’, new Date());

    5. go to line number 218 and add these line
    var seleteddate1 = jQuery.datepicker.formatDate(‘mm-dd-yy’, new Date(dateAsString));
    document.addnewappointment.appdate1.value = seleteddate1;
    6. go to line number 381 and replace current input text with these lines

    it will work if any issue let me know again
    Thanks
    Abhishek

    Thread Starter selvamtech

    (@selvamtech)

    Hi Abhishek

    It it working fine. i can able to see the changes . thanks a lot.

    Thanks
    selva

    Hi selva

    can i deserve five star rating https://www.ads-software.com/support/view/plugin-reviews/appointment-calendar?filter=5

    Thanks
    Abhishek

    Thread Starter selvamtech

    (@selvamtech)

    HI abishek

    i have another doubt, email also having date format issues.Now its like

    YY/MM/DD , i need to change mm/dd/yy format, i have changed in line 54,

    $AppointmentDate = date(“Y-m-d”, strtotime($_POST[‘AppDate’])); to

    $AppointmentDate = date(“m-d-Y”, strtotime($_POST[‘AppDate’]));

    now am getting email correctly , but having the problem admin section manage appoitements list.in manange appoitment list last booking year looks like 0001 after changing the 54th line. can you explain solution?

    Thread Starter selvamtech

    (@selvamtech)

    Here is the link which i getting issues in admin section

    https://www.dropbox.com/s/5o6vl6dxh7sdkd0/fix.PNG?dl=0

    in appointment-calendar-mobile.php, after changing the 54 line

    $AppointmentDate = date(“Y-m-d”, strtotime($_POST[‘AppDate’]));

    to

    $AppointmentDate = date(“m-d-Y”, strtotime($_POST[‘AppDate’]));

    email as well as admin list of appoitnment section also need mm-dd-yy , please provide the solution, it would very helpful.

    Thanks
    selvamtech

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Date fomat’ is closed to new replies.