How to display the last day of the month on your website?

Last update on October 2, 2008 04:41 PM by computergroove1
Published by computergroove1

How to display the last day of the month on your website?






There is a very easy way to display the last day of the month on your website with a PHP code that you will add in your document. All you have to do is to add “$m†to refer to the month and “$y†to the year. To be able to display the day, you can use the “t†code as explained in the example below:

<?
$ month = mktime (0, 0, 0, $ m, 1, $ y);
setlocale ( 'LC_ALL', 'en_US');
echo "month". date ( "FY", $ month). "owns". date ( "t", $ month). "days";
>
Best answers for « How to display the last day of the month on your website? » in :
Publish a PDF file on your website Show Publish a PDF file on your Website Displaying a link to a PDF on your Website Displaying the PDF on your website Displaying a link to a PDF on your Website Proposing a PDF link on your own website is an operation that can seem...
White background's problem in web pages Show Your web pages will be displayed more accurately : No background color, everything is white !!! (Like this image) To resolve this problem follow these steps : 1. Go to the "Control Panel" : Click on "Option accessibility" 2. In the...
[PHP]Last day of the month/Number of days in the month ShowLast day of the month and number of days in a month Using $m as the number of the month i and $y as year. Function date() can display directly the number of days in the month using the "t" character:
Mktime() - Timestamp yesterday, last month, etc.). ShowMktime() - Timestamp yesterday, last month, etc.) Intro Last 24 hours Yesterday This week Last week This Month Last 30 days (last 30 days) Last month Current year(this year) Last year (last year) Intro The mktime()function...
Displaying images in web browser ShowDisplaying images in web browser The Flash / Shockwave not displayed When surfing on the internet, you have surely come across small rectangles with red crosses replacing images on the web pages. This may be due to several images on...
Download TClockEx ShowTclockEx enhances Windows taskbar clock. In addition to the displayed hour, you can add the date with day, month and year or other supplementary information (the size of the available disk, the used memory). TclockEx is totally customizable: you can...
Managing images in HTML ShowHow do you display images on a web page? Having a few images on a website can make it more attractive and user-friendly. However, it is important not to go overboard, since images can take a long time to load, and in some cases can make a document...
Certificates ShowIntroduction to the concept of certificates Asymmetric encryption algorithms are based on the sharing of a public key among various users. In general, this key is shared via an electronic directory (usually in LDAP format) or a website. However,...
Webmaster (Website administrator) ShowWebmaster (Website administrator) A webmaster (also called a website administrator) is in charge of maintaining and developing the company's website. To do so, he/she works to define the architecture and tree structure of the website, sometimes in...