function dn = jed_to_datenum ( jed )

%*****************************************************************************80
%
%% jed_to_datenum() converts a JED to a MATLAB date number.
%
%  Discussion:
%
%    The MATLAB "datenum" function accepts a string defining
%    a date and returns a datenumber:
%
%      dn = datenum ( 'Aug 17 1939' )
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 December 2017
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real JED, the Julian Ephemeris Date.
%
%  Output:
%
%    real DN, a MATLAB date number.
%
  dn = jed - epoch_to_jed_datenum ( );

  return
end
