Solved! Go to Solution.
I have the exact same problem! I hope someone knows the answer. I did a temporary work around by using the year only (ex: 2012), no month and day with slashes.
I am using the ArcGIS Viewer for Flex v3.0, and noticed an interesting conversion of the date and time field when brought into the pop up.
The data was brought in originally via an excel file that had GPS coordinates on it. Then the data was displayed using the XY coordinates in arcmap and converted into a feature class. The field properties show the type as 'date' and in the attribute table also show in the format mm/dd/yy and x:xx:xx for the time. Using the pop up configure button found under the maps tab> editing the operational layer I am using> and then configure pop up.
Interestingly, the data seems to get lost in translation somewhere but I do not know how this can be resolved and was hoping someone had an idea for a fix. The pop up for the date appears as random numbers that don't even correspond to the date. For example 7/5/2012 shows up in the pop up as 134147920000000 and the time for 12:24:00 shows up as -2209117491000. Where are these weird conversions coming from? Anyone?
I have the exact same problem! I hope someone knows the answer. I did a temporary work around by using the year only (ex: 2012), no month and day with slashes.
I am using the ArcGIS Viewer for Flex v3.0, and noticed an interesting conversion of the date and time field when brought into the pop up.
<?xml version="1.0"?> <configuration> <title>Vehicle {UnitName}</title> <description><![CDATA[IGNITION STATUS: {IgnitionText} DATE: {Date_}{Time_} LOCATION: {Address}, {City} {Zip} DIR: {Dir} SPEED: {Speed} MILES: {Miles} ]]></description> <fields> <field name="Date_"> <format dateformat="shortDateShortTime"/> </field> </fields> </configuration>
I have this problem as well.
So I have a feature class that had a date field in it. When this date field got populated it shows them like this, "11/13/12 11:23:57".
I am now creating a web map using the ArcGIS Viewer for Flex, when I go into the configuration of the pop-up window I have the simple script of "<b>Date Collected: </b>{DateCollected}" along with listing a bunch of other fields. DateCollected is the field name. Then when I go to view this in the map is lists the "Date Collected: 1332340861000"
I understand that I need to tell it to put that field in a particular format, I would like ShortDateShortTime. I just don't understand how to accomplish that. I have no html language/code experience and am learning as i go. The whole number is displays doesn't even look close to the date and time numbers. How do I get my date field to display correctly?
<description><![CDATA[<b>Date Collected: </b>{DateCollected}]]></description> <fields> <field name="DateCollected" alias="Date Collected" visible="false"> <format dateformat="shortDateShortTime"/> </field> </fields>
If you are trying to format the date in the Description tag try this to get the short date.<description><![CDATA[<b>Date Collected: </b>{DateCollected}]]></description> <fields> <field name="DateCollected" alias="Date Collected" visible="false"> <format dateformat="shortDateShortTime"/> </field> </fields>
I believe that is how i resolved the date in the popup.