function w = yjf_to_weekday_common ( y, j, f )

%*****************************************************************************80
%
%% yjf_to_weekday_common() returns the weekday of a Common YJF date.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 April 2013
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, J, real F, the YJF date.
%
%  Output:
%
%    integer W, is the week day number of the date, with
%    1 for Sunday, through 7 for Saturday.
%
  jed = yjf_to_jed_common ( y, j, f );

  [ w, f2 ] = jed_to_weekday ( jed );

  return
end
