You can connect with the API by sending a POST request to the following endpoint:
https://do-calculate.com/api/calculate-age-gregorian
Request Body:
The API expects a JSON object in the request body with the following property dateOfBirth (string, required): The date of birth in the format YYYY-MM-DD. Example: "1990-01-01":
Replace YYYY-MM-DD
with the desired date of birth as the below example:
{ "dateOfBirth": "1990-01-01" }
The API will respond with a JSON object containing the calculated age, as the following example:
{ "age": { "years": 33, "months": 4, "days": 15, "hours": 10, "minutes": 25, "seconds": 50 } }
The age is calculated as the difference between the current date and the provided date of birth. The response object includes the age in years, months, days, hours, minutes, and seconds.
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.
curl -X POST -H "Content-Type: application/json" -d '{"dateOfBirth":"1990-01-01"}' https://do-calculate.com/api/calculate-age-gregorian
استخدم خدمة "حساب عيد ميلادك" لمعرفة الزمن المتبقي على عيد ميلادك القادم، سواء كان ذلك في العام الحالي أو العام القادم. يتم الحساب بشكل إلكتروني بعد إدخال تاريخ الميلاد بشكل صحيح. قم بتحديد يوم وشهر وسنة ميلادك لمعرفة الزمن المتبقي بالأشهر والأيام والساعات والدقائق والثواني.
اعرف كم باقي على عيد ميلادك بالتفصيل، إذا كان العيد غدًا، ستظهر النتيجة بالساعات والدقائق، أما إذا كان في الشهر الحالي، ستظهر بالأيام، وإذا كان بعد شهر أو أكثر، ستظهر بالأشهر والأيام. تتميز هذه الخدمة بالدقة في التاريخ والتوقيت، حيث تعتمد على توقيت جرينتش.
سيظهر النظام بدقة متى سيكون عيد ميلادك القادم، ويمكنك حساب الفرق بين التوقيت المحلي وتوقيت جرينتش. تم اعتماد توقيت جرينتش للمقارنة بسبب شيوعه عالميًا، ويمكنك أيضًا حساب الفرق بينه وبين التوقيت المحلي في بلدك.
أفضل طريقة لحساب الوقت المتبقي على عيد ميلادك هي استخدام تاريخ الميلاد الميلادي بدلاً من التاريخ الهجري، حيث يوفر دقة أكبر. تعرّف بسهولة على موعد عيد ميلادك القادم أو حتى عيد ميلاد أي شخص تحبه للمشاركة في الاحتفالات هذا العام.
تعد خدمتنا متنوعة، وتشمل حساب عيد الميلاد، وكم باقي لعيد ميلادي، واحسب كم باقي على عيد ميلادك، وكيف أعرف عيد ميلادي.