Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check weekday of date

$dayofweek = date('w', strtotime($date));
$result    = date('Y-m-d', strtotime(($day - $dayofweek).' day', strtotime($date)));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #weekday #date
ADD COMMENT
Topic
Name
1+8 =