I
I
IvanOne2014-09-21 21:16:45
JavaScript
IvanOne, 2014-09-21 21:16:45

How to get php week limits?

How to find out the week boundaries (Monday and Sunday number) for any week of the year? Let's find out what date is Monday in mid-December

Answer the question

In order to leave comments, you need to log in

6 answer(s)
R
Ridz, 2016-09-21
@evgemiil

option

S
Sergey, 2016-09-20
Protko @Fesor

There is such a thing as ngPluralize in Angular . You can dig in this direction.

P
Philipp, 2014-09-21
@IvanOne

echo date('M d',strtotime('2014W15'));
echo date('M d',strtotime('2014W15')+6*24*3600);

D
Dmitry Skogorev, 2014-09-21
@EnterSandman

get first day of week by week number php

S
Sergey, 2014-09-21
@butteff

in the date function, the D directive tells us the day of the week. Find out today's date and day of the week, then calculate from this date, in a cycle.

I
IvanOne, 2014-09-21
@IvanOne

are there any other options?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question