- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
JDToGregorian() function in PHP
The JDToGregorian() function converts a Julian day count to a Gregorian date.
Syntax
jdtogregorian(julian_day);
Parameters
julian_day − A Julian Day number
Return
The JDToGregorian() function returns a Gregorian date in format "month/day/year".
Example
The following is an example −
<?php $res = gregoriantojd(11,11,18); echo $res . "<br>"; echo jdtogregorian($res); ?>
Output
1727949 11/11/18
Advertisements