Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine if generated date falls on a holiday (PHP)?

Tags:

date

php

bank

Does anyone know of an existing library or even a useful function that would allow a php script to check if a generated date clashes with a holiday, whether it be US, UK, AUS, or SAF holidays?

If there is no library are there any useful sources online which I could harness to develop my own?

like image 625
Bob-ob Avatar asked Dec 05 '25 14:12

Bob-ob


1 Answers

I just google about this because this is interesting subject and i havn't tried it but it seems possible using pear package.

Here is link : http://pear.php.net/package/Date_Holidays

Here is example: http://pear.php.net/manual/en/package.datetime.date-holidays.example.php

Hope this helpful to you

like image 169
GBD Avatar answered Dec 08 '25 02:12

GBD



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!