Convert Julian date to Normal Date

Accepts Julian Date(s) vector (numeric), gives normal date(s) in a character vector
1.5K Downloads
Updated 6 Jun 2012

View License

Julian Date input format: yyyyddd, e.g, 01 Jan 2009 = 2009001 or 31 Dec 2009 =
2009365. Normal date output format can be 'dd-mmm-yyyy' (e.g., 31-Dec-2009). If the given date is not in the above format (i.e., numeric with 7 significant digits such as 2012187.5 for 05 Jun 2012 12:00 PM), warnings will be returned. The second input argument is optional.
________________________________________
--Inputs:
jl_dates: one or a vector of numerical Julian dates (7 significant digits: 0000000.00)
dateFormat: format of the output string date (optional)
--Outputs:
normalDate: a character vector of output date(s)
status: a string character giving information about possible warnings
which will be generated if the input jl_dates vector does not follow
required conditions.

Cite As

M Sohrabinia (2024). Convert Julian date to Normal Date (https://www.mathworks.com/matlabcentral/fileexchange/36901-convert-julian-date-to-normal-date), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dates and Time in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Description of the function is updated and the inputs/outputs are more clarified.

1.0.0.0