Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 8th, 2008, 09:55 PM
anu
Guest
 
Posts: n/a
Default Current week

Please let me know how I can get the starting date of the current week
in PHP.
  #2  
Old October 8th, 2008, 11:05 PM
Lars Eighner
Guest
 
Posts: n/a
Default Re: Current week

In our last episode,
<ffd5cc1f-fe16-4748-8165-a68966fd7604@b31g2000prb.googlegroups.com>, the
lovely and talented anu broadcast on comp.lang.php:
Quote:
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/usenet@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.
  #3  
Old October 9th, 2008, 03:05 AM
AqD
Guest
 
Posts: n/a
Default Re: Current week

On Oct 9, 4:50 am, anu <anucherk...@gmail.comwrote:
Quote:
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.
  #4  
Old October 9th, 2008, 04:55 AM
Gordon Burditt
Guest
 
Posts: n/a
Default Re: Current week

>Please let me know how I can get the starting date of the current week
Quote:
>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?

  #5  
Old October 9th, 2008, 06:35 AM
b.jeswine
Guest
 
Posts: n/a
Default Re: Current week

In news:x5WdnVbOrKli4nDVnZ2dnUVZ_tTinZ2d@posted.inter netamerica,
Gordon Burditt <gordon@hammy.burditt.orgtyped:
Quote:
How do you get the starting day of the week of the current (or any)
week?
Sunday == 0, simple.




  #6  
Old October 9th, 2008, 09:35 AM
FutureShock
Guest
 
Posts: n/a
Default Re: Current week

b.jeswine wrote:
Quote:
In news:x5WdnVbOrKli4nDVnZ2dnUVZ_tTinZ2d@posted.inter netamerica,
Gordon Burditt <gordon@hammy.burditt.orgtyped:
>
Quote:
>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
  #7  
Old October 9th, 2008, 01:35 PM
Jerry Stuckle
Guest
 
Posts: n/a
Default Re: Current week

b.jeswine wrote:
Quote:
In news:x5WdnVbOrKli4nDVnZ2dnUVZ_tTinZ2d@posted.inter netamerica,
Gordon Burditt <gordon@hammy.burditt.orgtyped:
>
Quote:
>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.
jstucklex@attglobal.net
==================

  #8  
Old October 9th, 2008, 06:25 PM
R. Rajesh Jeba Anbiah
Guest
 
Posts: n/a
Default Re: Current week

On Oct 9, 1:50 am, anu <anucherk...@gmail.comwrote:
Quote:
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/
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles