News:

Looking for documentation? Take a look on our wiki

Main Menu

Change the format of date field in VM2

Started by tarku, March 01, 2013, 05:55:01 AM

Previous topic - Next topic

tarku

HI

Is it possible to Change the format of date field in VM2.0.18(a) in joomla 2.5.9
Currently the format is yy.mm.dd but i need dd/mm/yyyy
Please tell is there any setting in backend.
Thank you for any help


jenkinhill

#2
Joomla's default date format is set in the language file (eg en-GB.ini)   http://forum.joomla.org/viewtopic.php?f=615&t=775861#p2952085

To set VirtueMart's date format you should create language overrides for the strings in (eg) language/en-GB/en-GB.com_virtuemart.ini

Initially these are:
COM_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"

The standard date formats are listed in http://php.net/manual/en/function.date.php

Tutorial on langage overrides:  http://www.ostraining.com/blog/joomla/languge-manager
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

tarku

Thank u for the reply jenkinhill and lindapowers
i will try it

sws

I have tried several suggestions that I have read here, and still have a format issue for dates in VM 2.0 on J 2.5 with all updates.  Running php 5.3

To be brief:  Dates in the VM Administrator display mm/dd/yy, and I need them to display as dd/mm/yy

See attached image for a screenshot: https://www.dropbox.com/s/4irdigg2m87xo0i/VM%20Date.JPG

Thanks in advance!