How to use JDDayOfWeek: having a date, for example, 12.02.2012, how to find out the day of the week?

    1 answer 1

    Alternatively, you can:

    $cur_date = '12.02.2012'; $arr = explode('.',$cur_date); echo jddayofweek ( cal_to_jd(CAL_GREGORIAN, $arr[0],$arr[1], $arr[2]) , 1 ); 

    But I think that there can be a more beautiful way.