Change Date Format
capslock 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Change Date Format
renu 0
From: -
From: -
Change Date Format
my code in php is
$colvalue = date('Y-m-d', mktime (0, 0, 0, $_POST[$colname."_months"], $_POST[$colname."_days"], $_POST[$colname."_years"]));
the output is 2008-01-21
i want it to be displayed as 21-jan-2008
how to change the code for making the change??
somebody pls help me..
my code in php is
$colvalue = date('Y-m-d', mktime (0, 0, 0, $_POST[$colname."_months"], $_POST[$colname."_days"], $_POST[$colname."_years"]));
the output is 2008-01-21
i want it to be displayed as 21-jan-2008
how to change the code for making the change??
somebody pls help me..
1 Re: Change Date Format
Forma 17
From: -
From: -
Change Date Format
Just add the following code in the php part of the review_header template (I would imagine that's where you want this)
then add $insert[review_date] to the html part, though it should already be there.
Hope that helps.
Just add the following code in the php part of the review_header template (I would imagine that's where you want this)
$insert[review_date] = date("j F, Y",strtotime($insert[review_date]));
then add $insert[review_date] to the html part, though it should already be there.
Hope that helps.
1 Re: Change Date Format
capslock
OP
0
From: -
From: -
Change Date Format
in review.
in review.
1 Re: Change Date Format
Philipp
From: Austria
Administrator
1342From: Austria
Change Date Format
Yes, this could be done with the templates (see forma's posting)
Where do you like to change the date and to which date format? Please post an example.
Yes, this could be done with the templates (see forma's posting)
Where do you like to change the date and to which date format? Please post an example.
1 Re: Change Date Format
capslock
OP
0
From: -
From: -
Change Date Format
where do i have to type it?
where do i have to type it?
1 Re: Change Date Format
Forma 17
From: -
From: -
Change Date Format
yep
will change it from 30/08/2005 to 30 August, 2005
yep
$insert[review_date] = date("j F, Y",strtotime($insert[review_date]));
will change it from 30/08/2005 to 30 August, 2005
Is possible to change the way date and time are displayed?