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

  • Home
  • SEARCH
  • 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 7000451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:40:22+00:00 2026-05-27T20:40:22+00:00

I need your help in how to subtract the last_modified and the final_manuscript_date in

  • 0

I need your help in how to subtract the last_modified and the final_manuscript_date in the following array:

Array ( 
    [chapters_id] => 10736 
    [last_modified] => 2010-12-21 15:01:55 
    [steps_id] => 3 
    [sub_step_id] => 0 
    [steps_position] => 1 
    [final_manuscript_date] => 2010-09-27 
)

So I can in this case get a value of N days between the dates 2010-12-21 and 2010-09-27?

  • 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-27T20:40:22+00:00Added an answer on May 27, 2026 at 8:40 pm

    Can’t you simply do:

    $diff = strtotime($arr["final_manuscript_date"]) - strtotime($arr["last_modified"]);
    $days = $diff / 84600; // to get # of days, you can round them off or use ceil/floor
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need your help building a SQL statement I can't wrap my head around.
Need your help with my PHP/MYSQL array. I have a php script that selects
Need your help in over coming the following issues. i need to send opt-in
Need your help. I am trying it first time. I have used following code.
I need your help, I'm learning the coreData migration and I can't access to
need your help!!! I tried looking for this but to no avail. How can
I need your help. How can I use javascript to find the filepath based
Need your help. I need to update the array data in the mysql table.
I need your help. How can I put 2 tables in a line, because
Need your help to get the max of CAP_PRICE based on certain criteria in

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.