PHP DateDiff fuction

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khyati30
    New Member
    • Feb 2007
    • 7

    #1

    PHP DateDiff fuction

    hi frds i have problem is datediff fucnctions.

    how can i find the days from two days

    means start date='03-08-08' (m-d-y)
    end date='04-07-08' (m-d-y)

    date difference is 30 days .


    how can i find using fuctions without gregoriantojd() .

    Reply
  • MarkoKlacar
    Recognized Expert Contributor
    • Aug 2007
    • 296

    #2
    Hi,

    Well what you have to do is check the difference in years, months, days(considerin g leap years).

    You'll probably find a whole load of code examples if you use google.

    Cheers

    Comment

    • khyati30
      New Member
      • Feb 2007
      • 7

      #3
      hello thanks for reply but can u give the exmple code of function
      bye

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by khyati30
        hello thanks for reply but can u give the exmple code of function
        bye
        Why can't you use gregoriantojd() ?

        Comment

        • MarkoKlacar
          Recognized Expert Contributor
          • Aug 2007
          • 296

          #5
          Hi,

          I think you should google it, you'll find more helpful examples. Get back when need help with the code.

          GoodLuck

          Comment

          Working...