Title: PHP strtoupper question&#8230;
Last modified: August 18, 2016

---

# PHP strtoupper question…

 *  [amanzi](https://wordpress.org/support/users/amanzi/)
 * (@amanzi)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/php-strtoupper-question/)
 * I would like to print the date in my posts with an abbreviated month in uppercase.
   I tried using this but it still prints it in lower case:
 * <?php echo strtoupper( the_time(‘M’) ); ?>
 * Can anyone tell me what I’m doing wrong?
 * Thanks – Stuart.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [rwatkins](https://wordpress.org/support/users/rwatkins/)
 * (@rwatkins)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/php-strtoupper-question/#post-184472)
 * Hey,
 * Try using `get_the_time('M')` instead of `the_time`
 * Rob
 *  Thread Starter [amanzi](https://wordpress.org/support/users/amanzi/)
 * (@amanzi)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/php-strtoupper-question/#post-184507)
 * Thanks – that worked!!
 * Cheers – Stuart.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP strtoupper question…’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [amanzi](https://wordpress.org/support/users/amanzi/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/php-strtoupper-question/#post-184507)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
