Select to view content in your preferred language

Still having date format issues even with Flex Viewer 3.3

2663
3
Jump to solution
05-30-2013 04:34 PM
ShawnyEkadis
Occasional Contributor
I have a map service that has a date field with no time in it whatsoever but when I create the map in the Flex viewer it adds 5:00pm to every record in the pop up window. I have upgraded to 3.3 but still have this problem. I have tried adding formatting tags in the pop up xml file:

<field name="DATE" alias="PURCHASE DATE" visible="true"/>
<format dateformat="shortDate"/>

Doesn't work.

I have tried this:

  <field name="DATE" alias="PURCHASE DATE" visible="true"/>
<format dateformat="shortDate"/>
  </field>

I get a parsing error in the preview and it won't draw my layer.

Any help would be appreciated.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Shawny

Try:


  <field name="DATE" alias="PURCHASE DATE" visible="true">
<format dateformat="shortDate"/>
  </field>


Note I have removed the forward slash after visible="true" on the first line

Regards

Anthony

View solution in original post

0 Kudos
3 Replies
AnthonyGiles
Honored Contributor
Shawny

Try:


  <field name="DATE" alias="PURCHASE DATE" visible="true">
<format dateformat="shortDate"/>
  </field>


Note I have removed the forward slash after visible="true" on the first line

Regards

Anthony
0 Kudos
ShawnyEkadis
Occasional Contributor
Thank you Anthony for the quick response, you are my hero! That solved my problem.
Amazing how one little character can trip you up.
0 Kudos
AnthonyGiles
Honored Contributor
Shawny,

Please don't also forget to mark the post as answered

Thank you

Anthony
0 Kudos