echo gregoriantojd(12,22,2021); // Output is 2459571
echo "<br>";
echo gregoriantojd(13,22,2021); // Output is 0
echo "<br>";
echo gregoriantojd(11,32,2019); // Output is 0
echo "<br>";
echo gregoriantojd(2,30,2019); // Output is 2458545
 int gregoriantojd ( int $month , int $day , int $year )
$yearRequired : Year in four digits between -4714 and 9999
$dayRequired : between 1 to 31
$monthRequired : Number from 1 to 12
Output is The julian day for the given gregorian date as an integer.

Information about available Calendars
Calendar Functions
Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here

    PHP video Tutorials
    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 All rights reserved worldwide Privacy Policy Disclaimer