Forcing field value to render as UPPERCASE

12 posts by 3 authors in: Forums > CMS Builder
Last Post: February 15, 2010   (RSS)

By Dave - February 15, 2010

Hi Jerry,

For many php functions, you just wrap the function call around the "value". In this case, it looks like this:

<?php echo strtoupper(date("D, M jS, Y", strtotime($e_blastRecord['press_release_publish_date']))) ?>

And for cases when it's getting too complicated, sometimes we break it up into multiple lines and use variables so it's easier to read:

<?php
$time = strtotime( $e_blastRecord['press_release_publish_date'] );
$date = date("D, M jS, Y", $time);
$uppercaseDate = strtoupper( $date );
echo $uppercaseDate;
?>


Hope that helps!
Dave Edis - Senior Developer
interactivetools.com