-
I wanted to know the simplest way to show reminder after one year of today's date. Like if I purchased a product on, the reminder will be shown on. Method 1: Using only date function to get current year PHP’s date function can let you know date and time related information based on the formatting string it takes in its first parameter. It can take two parameters. If you use only one parameter, It will return info about the current time.
Home | 2020 | 2021 | 2022 | Programming
Programming Languages- PHP
Week number in PHP
Getting the week number for a date in PHP is simple. Just use the powerful
date()
function that takes a format string and an optional unix timestamp as arguments. If you omit the second argument, it returns the current date/time in the given format.Php Get Current Timestamp
Example
Get the current week number and print it.
Php Year Shortcode
Output:
Please enable JavaScript to view the comments powered by Disqus.comments powered byDisqus
Php Years Between Two Dates
This is a private project of Thomas Lemmé
week-number.net offers a calendar with Week Numbers. Also notice the current Calendar Week as well as the german Kalenderwoche!