Return the weekday of 13th January, 2014 in PHP

Description

The following code shows how to return the weekday of 13th January, 2014.

Example


  /* ww w  .  ja v  a2  s .  co  m*/
<?php
    $jd=gregoriantojd(1,13,2014);
    echo jddayofweek($jd,1);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone