Php get month from date => http://drovulinprin.nnmcloud.ru/d?s=YToyOntzOjc6InJlZmVyZXIiO3M6MjE6Imh0dHA6Ly9iaXRiaW4uaXQyX2RsLyI7czozOiJrZXkiO3M6MjM6IlBocCBnZXQgbW9udGggZnJvbSBkYXRlIjt9 Solution: There are few ways you can retrieve year from a date. This might be useful for someone. Note that date will always generate 000000 since it takes an parameter, whereas does support microseconds if was created with microseconds. If today is Thursday then records from Monday to Thursday should be returned. Z Timezone offset in seconds. But this was not the format I wanted so I converted it into actual date format. I want to fetch tags popular in the week ordered by views. What are the books arrived in last one year. The following function will return the date on the Gregorian calendar for Orthodox Easter Pascha. It can take two parameters. How to Get Month From a Date in PHP? - Occasionally, there are even fewer or even more. For example let us find out who are the new members joined in our forum in last week. One shop may be php get month from date in knowing new products added in last one month. What are the books arrived in last one year. Here irrespective of the date values we want the records of last X days from today, or we can say that the records between today and last X days monthyear or week are required. Here are some sample queries on how to get the records as per requirements. Note that this query will return all future dates also. To exclude future dates we have to modify the above command a little by using to get records. Here is the modified one. Here are some queries to generate records between two date ranges. This query again we will modify to get the records between three moths and six months. Note that the months ranges are calculated starting from current day. So if we are collecting records of last three months and we are in 15th day of 9th month then records of 15th day of 6th month we will get but the records of 14th day of 6th month will be returning on next query that is between 3 months and 6 months. How to get the records of the working days of the week so php get month from date. If today is Thursday then records from Monday to Thursday should be returned. Any dump created today will not work in future dates say after 8 months. So to use above query which involves last 15 days or last 12 months records, we have to generate dump file every day. I want to fetch tags popular in the week ordered by views. How to create code in vb. Please Help me in this regards. But this was not the format I wanted so I converted it into actual date format. The format is getting updated as a new column during runtime. This returns the actual date and time format in a new column.