⊗ppPmTmIH 190 of 447 menu

Date Range Check in PHP

Let there be three ranges: from 1 January to 8 March, from 9 March to 17 June, and from 18 June to 31 December. Let us also have some date containing a month and a day. Let's determine which range this date falls into:

<?php $date = '08-20'; if ($date >= '01-01' && $date <= '03-08') { echo '1'; } if ($date >= '03-09' && $date <= '06-17') { echo '2'; } if ($date >= '06-18' && $date <= '12-31') { echo '3'; } ?>

A date containing a month and a day is given. Determine the Zodiac sign for this date.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline