A certain PHP date format..

Status
Not open for further replies.

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Hi,

Can anyone tell me how I can echo my date out like the following:

15-06-2011

I need it in that order, (day)-(month)-(year).

- Thanks!

- EDIT -
Also to read from the date of today, it's for a register script to insert to a certain table, for the date of today.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
I know the format of the date just don't know the part of "EDIT" lol.

PHP:
<?php
{
echo date("D-m-y");
}
?>

I just realized how much of a retard I am, I could of done that easy, lol, (ps, it's d, not D and also, Y not y).

Fixed it now ;D.

- Thanks.
 
Status
Not open for further replies.

Users who are viewing this thread

Top