File Exchange

image thumbnail

Convert Julian date to Normal Date

version 1.1.0.0 (2.54 KB) by M Sohrabinia
Accepts Julian Date(s) vector (numeric), gives normal date(s) in a character vector

2 Downloads

Updated 06 Jun 2012

View Version History

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 (2021). Convert Julian date to Normal Date (https://www.mathworks.com/matlabcentral/fileexchange/36901-convert-julian-date-to-normal-date), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Fabio

'leapyear' requires Aerospace Toolbox.

Liam Masters

Joey

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!