كلمات مفتاحية
  • إحسب الفرق بين عمرين
  • احسب الفرق بين تاريخين
  • احسب الفرق بين عمري في الهجري
  • احسب الفرق بين عمري وعمر اخر
  • حاسبة الفرق بين عمرين
  • حاسبة الفرق بين تاريخين
  • احسب الفرق بين عمرين في الميلادي

إحسب الفرق بين تاريخين في التقويم الميلادي
يمكن لـ "حاسبة الفرق بين تاريخين حساب الفرق بين التاريخين المدخلين بالسنوات والشهور والأيام والساعات والدقائق والثواني.



أدخل التاريخ الأول



أدخل التاريخ الثاني



This API allows you to calculate the difference between two dates using the Gregorian calendar.


API Endpoint:

You can connect with the API by sending a POST request to the following endpoint:

https://do-calculate.com/api/calculate-date-gregorian-differences


Request Body:

The API expects a JSON object in the request body with the following property

  • date1 (string, required): The first date of birth in the format YYYY-MM-DD.
  • date2 (string, required): The first date of birth in the format YYYY-MM-DD.

Replace YYYY-MM-DD with the desired date as the below example:

JSON
{
  "date1": "1990-01-01",
  "date2": "1995-06-15"
}


Response:

The API will respond with a JSON object containing the calculated age differences:

JSON
{
  "differences": {
    "years": 5,
    "months": 5,
    "days": 14,
    "hours": 0,
    "minutes": 0,
    "seconds": 0
  }
}

The differences object includes the age differences between date1 and date2 in years, months, days, hours, minutes, and seconds.


Error Responses:
  • If the request is invalid or missing the dateOfBirth property, the API will respond with a 400 Bad Request status code.

  • If the provided dateOfBirth is not a valid date, the API will also respond with a 400 Bad Request status code.


Request example with Curl in Bash:

bash
curl -X POST -H "Content-Type: application/json" -d '{"date1":"1990-01-01","date2":"1995-06-15"}' https://do-calculate.com/api/calculate-date-gregorian-differences 

هذه الحاسبة تقوم بحساب الفروقات بين تاريخين في التقويم الميلادي. فإذا قمت بتمرير تاريخين لتاريخي الميلاد، ستعيد الحاسبة فروقات الأعمار بينهما.
عند استخدام هذه الدالة، يجب تمرير التواريخ الميلادية في صيغة صحيحة مثل "YYYY-MM-DD". إذا تم تمرير تواريخ غير صحيحة، ستقوم الحاسبة بإلقاء خطأ وإرجاع رسالة تفيد بأنه يجب إدخال تواريخ صحيحة.
ستعود الحاسبة بنتيجة تحتوي على الفروقات بين التواريخ المدخلة في صيغة السنوات والشهور والأيام والساعات والدقائق والثواني. .