Get month of a given date which is stored in a PHP time variable in \'Y-m-d\' format
You can use date() and strtotime():