Gossamer Forum
Home : Products : DBMan : Customization :

Displaying just part of the date

Quote Reply
Displaying just part of the date
If I have a field called Date, and the standard format is 29-May-1999, is there a way to display just the 29-May portion of it?

I still want the field to contain the 1999, but I want to show just 29-May.
Quote Reply
Re: Displaying just part of the date In reply to
You can use something like

$part_date = substr($rec{'Date'},0,6);

The use the variable $part_date to print it out.

------------------
JPD