Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Is there an easy way to get the start date of the current week?

by ruzam (Curate)
on Aug 21, 2010 at 19:03 UTC ( #856505=note: print w/ replies, xml ) Need Help??


in reply to Re: Is there an easy way to get the start date of the current week?
in thread Is there an easy way to get the start date of the current week?

If I'm already using MySQL, I usually don't bother trying to calculate dates with in the code. You can use MySQL to calculate the date in your query and return the date value along with the other query results. Alternatively, you can call MySQL first with a query that does nothing more than calculate the desired date, then use that result in report headings and later queries.

Just saying, there's always more than one way to a solution.


Comment on Re^2: Is there an easy way to get the start date of the current week?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://856505]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2014-12-27 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls