Jump to content


Photo

Urgent Date Question


  • Please log in to reply
2 replies to this topic

#1 mvosoughi

mvosoughi
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 27 June 2006 - 10:47 PM

I need to compare dates. But this way:

I get a date from database. (yyyy-mm-dd format)

I need to understand if this date is newer then "6 months" or not.

What I need is get the current date,
calculate the date 6 months ago,
compare "the date from DB" & "the date 6 months ago from now"
show the result.

How will I do that please?



#2 dptr1988

dptr1988
  • Members
  • PipPipPip
  • Advanced Member
  • 372 posts

Posted 28 June 2006 - 12:16 AM

The word "Urgent" in your subject line probably won't help you get help faster. Read [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=6264\" target=\"_blank\"]PHP Freaks Posting Guidelines[/a] for details.
Need more help with your project? One of the thousands of programmers, web designers or artists at <a href="http://www.rentacode...d_6764522">Rent A Coder</a> would be happy to help.

Disclaimer: Free advice is usually worth what you paid for it. ( or at least when it's coming from me! )

#3 mvosoughi

mvosoughi
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 28 June 2006 - 07:58 AM

[!--quoteo(post=388683:date=Jun 28 2006, 01:16 AM:name=dptr1988)--][div class=\'quotetop\']QUOTE(dptr1988 @ Jun 28 2006, 01:16 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
The word "Urgent" in your subject line probably won't help you get help faster. Read [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=6264\" target=\"_blank\"]PHP Freaks Posting Guidelines[/a] for details.
[/quote]

dptr1988: you are right, I should have read the guidline. Thank for mentioning that. BTW: Problem is solved.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users