Welcome Guest, Not a member yet? Register   Sign In
Format Date?
#5

[eluser]xwero[/eluser]
i think you have to do this
Code:
$fdate = "Year: %Y Month: %m Day: %d";
echo mdate($fdate, mysql_to_unix($row->tanggal));
the mdate function is an interface function for the php date function so you need to convert the mysql date to the unix date format.


Messages In This Thread
Format Date? - by El Forum - 03-10-2008, 05:03 AM
Format Date? - by El Forum - 03-10-2008, 05:41 AM
Format Date? - by El Forum - 03-10-2008, 06:08 AM
Format Date? - by El Forum - 03-10-2008, 06:25 AM
Format Date? - by El Forum - 03-10-2008, 06:38 AM
Format Date? - by El Forum - 03-10-2008, 08:39 AM
Format Date? - by El Forum - 03-10-2008, 08:42 AM
Format Date? - by El Forum - 03-10-2008, 09:22 AM
Format Date? - by El Forum - 03-10-2008, 02:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB