Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Current week

 
   Database Help (Home) -> PHP RSS
Next:  Multiple Options Per Items in Database  
Author Message
anu

External


Since: Oct 08, 2008
Posts: 1



(Msg. 1) Posted: Wed Oct 08, 2008 1:50 pm
Post subject: Current week
Archived from groups: comp>lang>php (more info?)

Please let me know how I can get the starting date of the current week
in PHP.

 >> Stay informed about: Current week 
Back to top
Login to vote
Lars Eighner

External


Since: Jan 15, 2008
Posts: 89



(Msg. 2) Posted: Wed Oct 08, 2008 6:26 pm
Post subject: Re: Current week [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In our last episode,
<ffd5cc1f-fe16-4748-8165-a68966fd7604 RemoveThis @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/> usenet RemoveThis @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.

 >> Stay informed about: Current week 
Back to top
Login to vote
AqD

External


Since: Aug 22, 2008
Posts: 10



(Msg. 3) Posted: Wed Oct 08, 2008 6:56 pm
Post subject: Re: Current week [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 9, 4:50 am, anu <anucherk... DeleteThis @gmail.com> wrote:
> 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.
 >> Stay informed about: Current week 
Back to top
Login to vote
Gordon Burditt

External


Since: Jul 09, 2006
Posts: 2



(Msg. 4) Posted: Wed Oct 08, 2008 10:52 pm
Post subject: Re: Current week [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>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?
 >> Stay informed about: Current week 
Back to top
Login to vote
b.jeswine

External


Since: Oct 08, 2008
Posts: 3



(Msg. 5) Posted: Wed Oct 08, 2008 10:52 pm
Post subject: Re: Current week [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In news:x5WdnVbOrKli4nDVnZ2dnUVZ_tTinZ2d@posted.internetamerica,
Gordon Burditt <gordon DeleteThis @hammy.burditt.org> typed:

> How do you get the starting day of the week of the current (or any)
> week?

Sunday == 0, simple.
 >> Stay informed about: Current week 
Back to top
Login to vote
FutureShock

External


Since: Sep 28, 2008
Posts: 31



(Msg. 6) Posted: Thu Oct 09, 2008 1:32 am
Post subject: Re: Current week [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

b.jeswine wrote:
> In news:x5WdnVbOrKli4nDVnZ2dnUVZ_tTinZ2d@posted.internetamerica,
> Gordon Burditt <gordon DeleteThis @hammy.burditt.org> typed:
>
>> 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
 >> Stay informed about: Current week 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 3465



(Msg. 7) Posted: Thu Oct 09, 2008 8:25 am
Post subject: Re: Current week [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

b.jeswine wrote:
> In news:x5WdnVbOrKli4nDVnZ2dnUVZ_tTinZ2d@posted.internetamerica,
> Gordon Burditt <gordon.TakeThisOut@hammy.burditt.org> typed:
>
>> 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.TakeThisOut@attglobal.net
==================
 >> Stay informed about: Current week 
Back to top
Login to vote
R. Rajesh Jeba Anb1

External


Since: Jun 15, 2004
Posts: 49



(Msg. 8) Posted: Thu Oct 09, 2008 10:18 am
Post subject: Re: Current week [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 9, 1:50 am, anu <anucherk....DeleteThis@gmail.com> wrote:
> 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/
 >> Stay informed about: Current week 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> PHP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]