Solved

week of

Posted on 2011-03-10
3
362 Views
Last Modified: 2012-05-11
is there a way to display the date as a week
0
Comment
Question by:rgb192
3 Comments
 
LVL 33

Accepted Solution

by:
jppinto earned 300 total points
ID: 35097580
date("W", time());
 
0
 
LVL 4

Assisted Solution

by:Doug Walton
Doug Walton earned 200 total points
ID: 35098598
This link has all the different date formats for PHP:
http://us.php.net/manual/en/function.date.php

"W      ISO-8601 week number of year, weeks starting on Monday"
0
 

Author Closing Comment

by:rgb192
ID: 35099389
thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question