Php code

Closed
rrn Posts 1 Registration date Tuesday January 13, 2009 Status Member Last seen January 14, 2009 - Jan 14, 2009 at 06:47 AM
janishtozor Posts 14 Registration date Wednesday September 3, 2008 Status Member Last seen June 10, 2009 - Jan 15, 2009 at 12:36 AM
Hello,


my php code for displaying date is

$colvalue = date('Y-m-d', mktime (0, 0, 0, $_POST[$colname."_months"], $_POST[$colname."_days"], $_POST[$colname."_years"]));

date is displayed as 2009-01-13

i want it to be displayed as 13-jan-2009

how to chande the code????

pls help me.....

1 response

janishtozor Posts 14 Registration date Wednesday September 3, 2008 Status Member Last seen June 10, 2009 3
Jan 15, 2009 at 12:36 AM
hi,

check out this link to help you in your work:

https://www.php.net/manual/en/function.date.php

good luck!
0