Jump to content

date("d-m-Y") outputs "03-07-2006" ... how can I make it output "3-7-2006"?


Isoss

Recommended Posts

www.php.net - date function:


n - Numeric representation of a month, without leading zeros 1 through 12

j Day of the month without leading zeros 1 to 31

link:
http://uk.php.net/manual/en/function.date.php

date("j,n,Y"); would give d, m, yyyy

A lil bit of research

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.