Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

week of

Posted on 2011-03-10
3
Medium Priority
?
372 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 1200 total points
ID: 35097580
date("W", time());
 
0
 
LVL 4

Assisted Solution

by:Doug Walton
Doug Walton earned 800 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

971 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