VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: peaceandlove on November 18, 2013, 10:32:32 AM

Title: Solved: How to change VM Backend date format
Post by: peaceandlove on November 18, 2013, 10:32:32 AM
Currently at front end in artilces etc if we publish created date etc the date seems fine in dd/mm/yy but at backend in VM2 , if we goto coupon and select the date field (its calender filed) then the date format is mm/dd//yy


we want to change it? so how to change the backend date format of VM?
Title: Re: How to change VM Backend date format
Post by: jenkinhill on November 18, 2013, 12:14:35 PM
The calendar selector uses the language constant COM_VIRTUEMART_DATE_FORMAT_INPUT_J16 so override that in the BE.
Title: Re: How to change VM Backend date format
Post by: peaceandlove on November 18, 2013, 15:13:40 PM
Thanks for your reply, are you talking about this tutorial http://www.ostraining.com/blog/joomla/change-joomla-s-date-format/

Should i had to do something else, please guide and point me to right tutorial
Title: Re: How to change VM Backend date format
Post by: peaceandlove on November 19, 2013, 07:21:34 AM
OK, Jenkinhill

I had manage to learn how to over for default joomla, now i am seeing how to change the virtumart date format using over ride and i had learned that i had to change


language/en-GB/en-GB.com_virtuemart.ini


QuoteCOM_VIRTUEMART_DATE_FORMAT_LC="%A, %d %B %Y"
; Date joomla 1.5 >1.6 format changed %d is d now
COM_VIRTUEMART_DATE_FORMAT_INPUT="%y.%m.%d"
COM_VIRTUEMART_DATE_FORMAT_INPUT_J16="y.m.d"

OK, My simple quesiton is as i want to change the date to dd/mm/yy so i can see 3 constant that can be over ride

1- COM_VIRTUEMART_DATE_FORMAT_LC

2- COM_VIRTUEMART_DATE_FORMAT_INPUT

3- COM_VIRTUEMART_DATE_FORMAT_INPUT_J16

Should i had to change all 3?
Title: Re: How to change VM Backend date format
Post by: peaceandlove on November 19, 2013, 07:25:59 AM
Also tell me what text to replace, should i simply move y at end and d at start? if you can tell me full syntax that will be good
Title: Re: How to change VM Backend date format
Post by: peaceandlove on November 19, 2013, 07:35:20 AM
I had created those 4 overrieds

COM_VIRTUEMART_DATE_FORMAT_INPUT                           %d.%m.%y
COM_VIRTUEMART_DATE_FORMAT_INPUT_J16                   d.m.y   
COM_VIRTUEMART_DATE_FORMAT_INPUT_JS                           dd.mm.y   
DATE_FORMAT_LC2                                                              d, F, Y      

Those successfully changes my joomla articles front end date format, but when i go to coupons in backend of virtumart my date still mm/dd/yy , its not change, i also want to change vm2 backend date format? what wrong
Title: Re: How to change VM Backend date format
Post by: jenkinhill on November 19, 2013, 12:16:56 PM
I stated in a pevious message "If you add the overrides for the administrator language file then you can select to add to  BE and FE at the same time." You must select "Administrator" in the first Language Manager: Language Overrides page. Joomla 2.5 does not use %(d) format, that was the format used for J1.5
Title: Re: How to change VM Backend date format
Post by: peaceandlove on November 20, 2013, 08:34:41 AM
OK. Let me try
Title: Re: How to change VM Backend date format
Post by: peaceandlove on November 20, 2013, 12:24:00 PM
Thanks, jenkinhill , I solved it , I am just not selecting Administrator from the drop down menu and that only changing the date format in Front End, I got your point, selected teh administrator from dropdown and override, its solvded by proble.

Once again jenkinhill , you are so nice.