Jump to content

Archived

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

Isoss

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

Recommended Posts

I need to get digit between 1 - 9 be displayed without the 0 on the left. How can I do it?

Thanks.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Thanks a lot ... actually I searched but couldn't find anything like that! maybe I just missed it. Thanks again!

Share this post


Link to post
Share on other sites

×

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.