Modified Julian Date

The most accurate calculation of modified Julian date (modified Julian date = Julian date - 2400000.5)


Updated Mon, 03 Oct 2022 08:47:25 +0000

View License

For more than six years I used my previous version of Mjday.m and I thought it was the most accurate because its results were the same as juliandate function of MATLAB. Today, I computed JPL ephemerides with my newer version of Mjday.m and I could get to an accuracy of one centimeter for the position of the major planets, the Sun, and the Moon. If you are doing computations in astrodynamics, aerospace, astronomy, and related fields, I strongly recommend you to use my Mjday.m rather than other versions.

Cite As

Meysam Mahooti (2023). Modified Julian Date (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Version Published Release Notes

invjday.m is added.


Mjday.m is modified.


Mjday.m is modified.


Mjday.m is modified.