News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Solved: How to change VM Backend date format

Started by peaceandlove, November 18, 2013, 10:32:32 AM

Previous topic - Next topic

peaceandlove

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?

jenkinhill

The calendar selector uses the language constant COM_VIRTUEMART_DATE_FORMAT_INPUT_J16 so override that in the BE.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

peaceandlove

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

peaceandlove

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?

peaceandlove

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

peaceandlove

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

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

peaceandlove

#7
OK. Let me try

peaceandlove

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.