# Date

**URL:** <https://forum.kirupa.com/t/date/278357>\
**Category:** Uncategorized\
**Created:** [December 28, 2008, 2:12pm UTC](https://forum.kirupa.com/t/date/278357 "2008-12-28T14:12:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gam99](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gam99](https://forum.kirupa.com/u/gam99)\
**Post date:** [December 28, 2008, 2:12pm UTC](https://forum.kirupa.com/t/date/278357/1 "2008-12-28T14:12:59Z")

</div>

Hi, I am using the php date function to show the user the current month as the first 3 letters of the month.

Like this: $thisMonth = date(‘M’);

Is there an easy way to get PHP to work out the next month and last month using the same function rather than write a load of “if” or “case” statements?

Cheers!
