Proper date format

What is the proper way of writing this?

$date_sent = formatdatetime[date, 2];
Who is Participating?
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
what format does the formatedatetime return?

anyhow, check out the php date/time functions page:
you will find this one:

that should answer your question(s) about date formatting.
pingeyegAuthor Commented:
Sorry, I forgot to delete this quesiton.  I've already fixed it.  Thanks!
What you are trying to do is an asp (VBScript) date stamp which will not work with php.
This is what you want to get the format you are looking for (1st example)

$date_sent = date("n/j/Y"); //will give mdy like this 1/2/2005
$date_sent = date("d/m/y"); //will give mdy like this 01/02/05

here is a good url to
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.