SOLVED !!! Date Format

  • Hamlin Gordon
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 9 months ago - 8 years 8 months ago #65084 by Hamlin Gordon
SOLVED !!! Date Format was created by Hamlin Gordon
Hi Dam, i've notice that the date format for OS Booking is only numbers example 6-6-2015 or 6/6/2015, which php file should i edit to change the format i'm looking for something like Wed-Jan 5- 2015 i'm running OS Services Booking 2.3.6
Last edit: 8 years 8 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #65106 by Mr. Dam
Replied by Mr. Dam on topic Date Format
Hi Halim,
To add new date format to OS Services Booking, you can add the format into Configuration page and select it.
Please open file: administrator > components > com_osservicesbooking > classes > configuration.php
Find
Code:
$format_date_times = explode('|','d.m.Y, H:i|d.m.Y, H:i:s|m.d.Y, H:i|m.d.Y, H:i:s|Y.m.d, H:i|Y.m.d, H:i:s|j.n.Y, H:i|j.n.Y, H:i:s|n.j.Y, H:i|n.j.Y, H:i:s|Y.n.j, H:i|Y.n.j, H:i:s|d/m/Y, H:i|d/m/Y, H:i:s|m/d/Y, H:i|m/d/Y, H:i:s|Y/m/d, H:i|Y/m/d, H:i:s|j/n/Y, H:i|j/n/Y, H:i:s|n/j/Y, H:i|n/j/Y, H:i:s|Y/n/j, H:i|Y/n/j, H:i:s|d-m-Y, H:i|d-m-Y, H:i:s|m-d-Y, H:i|m-d-Y, H:i:s|Y-m-d, H:i|Y-m-d, H:i:s|j-n-Y, H:i|j-n-Y, H:i:s|n-j-Y, H:i|n-j-Y, H:i:s|Y-n-j, H:i|Y-n-j, H:i:s');
And you can add your own format into above array
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Hamlin Gordon
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 8 months ago #65127 by Hamlin Gordon
Replied by Hamlin Gordon on topic Date Format
thanks, works great, please concider this option in the next update

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam