Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1052481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:06:01+00:00 2026-05-16T17:06:01+00:00

this is a very lame question but i m not able to find this

  • 0

this is a very lame question but i m not able to find this one.
How to get today’s date and date after two months..

format is month-date-year (numerical.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:06:02+00:00Added an answer on May 16, 2026 at 5:06 pm

    You can use the strtotime() function :

    $today = time();
    $twoMonthsLater = strtotime("+2 months", $today);
    
    // If what you really want is exactly 60 days later, then
    $sixtyDaysLater = strtotime("+60 days", $today);
    // ...or 8 weeks later :
    $eightWeeksLater = strtotime("+8 weeks", $today);
    

    In any case, the resulting new timestamps can then be converted to month-date-year :

    echo 'Today is : ' . date('m-d-Y', $today);
    echo 'Two months later will be : ' . date('m-d-Y', $twoMonthsLater);
    

    ** UPDATE **

    From the PHP manual

    Note: Please keep in mind that these functions are dependent on the locale settings of your server. Make sure to take daylight saving time (use e.g. $date = strtotime(‘+7 days’, $date) and not $date += 7*24*60*60) and leap years into consideration when working with these functions.

    Just thought I should mention it…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a very lame question, but I have struggled with it far too
Sorry, I know this is a very lame question to ask and not of
This one is probably very simple, but I can't seem to get it working.
This probably is a very very basic question but i can't seem to find
This time I have a very lame problem, which was working perfectly but now
okay this might be a pretty lame and basic question but its stuck in
This is possibly very lame question and I lack knowledge about ASP.Net. In this
This will probably make me look lame but still -- I can't find any
Let's make this very easy. What I want: @array = qw/one two one/; my
I'm sorry for this very newbish question, I'm not much given into web development.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.