VOOZH about

URL: https://www.geeksforgeeks.org/php/php-jdtojulian-function/

⇱ PHP | jdtojulian() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PHP | jdtojulian() Function

Last Updated : 11 Jul, 2025

The jdtojulian() function is an inbuilt function in PHP that is used to convert a Julian day count to a Julian calendar date. It converts Julian Day Count to a string containing the Julian Calendar Date in the month/day/year format.
Syntax: 
 

int jdtojulian( $julianday )


Parameters: This function accepts a single parameter $julianday which is mandatory. It contains Julian's day as an integer.
Return Value: This function returns the Julian Date as a string in the month/day/year format.
The below programs illustrate the jdtojulian() function in PHP. 
Program 1: 
 


Output: 
JulianToJD is : 2450395
JDToJulian is : 10/25/1996

 

Program 2: 
 


Output: 
Julian Day Count : 2450837
Julian Calendar Date : 1/10/1998

 

Related Articles: 
 


Reference: https://www.php.net/manual/en/function.jdtojulian.php
 

Comment