By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

Current week

P: n/a
anu
Please let me know how I can get the starting date of the current week
in PHP.
Oct 8 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
In our last episode,
<ff**********************************@b31g2000prb. googlegroups.com>, the
lovely and talented anu broadcast on comp.lang.php:
Please let me know how I can get the starting date of the current week
in PHP.
This question occurs so often here that it must be a homework problem.
Here's another: how can you use google to check for previous answers to your
question?

--
Lars Eighner <http://larseighner.com/us****@larseighner.com
The Daily Beagle <http://larseighner.com/Daily_Beagle/>
Q. What did Palin do that Obama could not do?
A. Got me to vote for Obama.
Oct 8 '08 #2

P: n/a
AqD
On Oct 9, 4:50 am, anu <anucherk...@gmail.comwrote:
Please let me know how I can get the starting date of the current week
in PHP.
you can calculate it by converting date to timestamp.
Oct 9 '08 #3

P: n/a
>Please let me know how I can get the starting date of the current week
>in PHP.
Related question to think about (and the answer is not trivial):
How do you get the starting day of the week of the current (or any) week?

Oct 9 '08 #4

P: n/a
In news:x5******************************@posted.inter netamerica,
Gordon Burditt <go****@hammy.burditt.orgtyped:
How do you get the starting day of the week of the current (or any)
week?
Sunday == 0, simple.


Oct 9 '08 #5

P: n/a
b.jeswine wrote:
In news:x5******************************@posted.inter netamerica,
Gordon Burditt <go****@hammy.burditt.orgtyped:
>How do you get the starting day of the week of the current (or any)
week?

Sunday == 0, simple.

Unless your week starts with Monday or Saturday. Depends on the need of
the application wouldn't it?

Scotty
Oct 9 '08 #6

P: n/a
b.jeswine wrote:
In news:x5******************************@posted.inter netamerica,
Gordon Burditt <go****@hammy.burditt.orgtyped:
>How do you get the starting day of the week of the current (or any)
week?

Sunday == 0, simple.


Not to everyone.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 9 '08 #7

P: n/a
On Oct 9, 1:50 am, anu <anucherk...@gmail.comwrote:
Please let me know how I can get the starting date of the current week
in PHP.
http://in.php.net/date

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Oct 9 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.