[Geomoose-users] Formatting date field in html template

Dan Little danlittle at yahoo.com
Tue May 18 22:42:45 EDT 2010


Are you pulling this data from a shapefile?  If so, I believe you are stuck doing some sort of conversion.  Or you could use OGR to connect to the shapefile and some sort of OGR/SQL to convert the date format.

>
>From: Nayna Nayate <nayna.nayate at gis.leg.mn>
>To: "geomoose-users at lists.sourceforge.net" <geomoose-users at lists.sourceforge.net>
>Sent: Tue, May 18, 2010 2:10:46 PM
>Subject: [Geomoose-users] Formatting date field in html template
>
> >
>
>
>
>
>>
>Hi all,
> 
>I have a date field in my shapefile in the format mm/dd/yyyy
>which displays as yyyymmdd when I do an identify or select in geomoose .
> 
>I looked at the mapserver documentation on how to format
>attribute items and couldn’t find anything on displaying date formats.
> 
>Any suggestions on how I can get my date field to display
>properly without converting it into a text field in the shapefile? Here is how
>I currently have the field in my identify template.
> 
><tr>
><td align="right"
>class="border"><b>Purchase Date:</b></td>
><td class="border">[item
>name="PURCHDATE" format="$value"]</td>
></tr
> 
>Thanks in advance!
>Nayna


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100518/d8f19d1c/attachment.html


More information about the Geomoose-users mailing list