FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » [newbie] datetime issues
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
[newbie] datetime issues [message #174369] Wed, 08 June 2011 22:54 Go to previous message
Jeff[1] is currently offline  Jeff[1]
Messages: 2
Registered: June 2011
Karma:
Junior Member
hi

php 5

I'm trying to construct an sql query where I need to filter between 2 dates.
So how do I dynamically create those datetime values?

Tip: The day value will always be 1 (or 01 ?).

I will dynamically select values from the entire last month.

I tryed this:
convert('2012-'.date('m').'-01 00:00:00',DATETIME)
which gave me syntax error and also I need to some more if testing on year.
So hope there is a better way of doing this

please help me
[Message index]
 
Read Message
Read Message
Previous Topic: self-modifying program
Next Topic: me? pl's visit
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 08:51:59 GMT 2024

Total time taken to generate the page: 0.04442 seconds