Jump to content

Recommended Posts

something like this i meant

 


echo "Todays date: ".date('d.m.Y');
echo "<br/>Todays Is date: ".date('dM/D/y');
echo "<br/>Todays date: ".date('F-Dd-Y');

 

display it in 8 different ways, anymore help? i managed 3 different formats and 5 more left

something like this i meant

 


echo "Todays date: ".date('d.m.Y');
echo "<br/>Todays Is date: ".date('dM/D/y');
echo "<br/>Todays date: ".date('F-Dd-Y');

 

display it in 8 different ways, anymore help? i managed 3 different formats and 5 more left

 

Did you test out those "formats"? The last two aren't formats that I have ever seen used. You would get something like:

16Feb/Tue/2010 or February-Tue16-2010

 

I *think* your instructor is wanting you to find eight formats that would be legitimately used. Think about how dates are used by people (in different countries) and by machines. Or, be lazy, and do a simple google seach for "date format".

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.