Jump to content

Urgent Date Question


mvosoughi

Recommended Posts

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?

Link to comment
Share on other sites

[!--quoteo(post=388683:date=Jun 28 2006, 01:16 AM:name=dptr1988)--][div class=\'quotetop\']QUOTE(dptr1988 @ Jun 28 2006, 01:16 AM) [snapback]388683[/snapback][/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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.