How to use JdDayOfWeek in PHP Calendar

In this article I am going to explain about JdDayOfWeek function in PHP.
  • 2298

PHP Calendar JdDayOfWeek() Function

The calendar JdDayOfWeek function returns the day of the week.

Syntax of  JdDayOfWeek function

jddayofweek(jd,mode)

Parameters in JdDayOfWeek function

It have three parameters and all parameters is required:

Parameter Description
jd A Julian day number as integer
mode Calendar week mode.

Example of Calendar JdDayOfWeek function

<html>

<body>

<?php

$jdweek=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));

echo(jddayofweek($jdweek,1));

?>

</body>

</html>

 

Output:

JdDayOfWeek() Function.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.