Date Format
Has anyone figured out how to get the dates displayed in the HTML5 viewer to be somehting other than this short essay about the date/time?
Sun Jul 14 2013 19:00:00 GMT-0500 (Central Daylight Time)
How can I get a simple, short date in a format like 07/14/2013?
-
Inside essentials, it is not easy. The easiest way would be to use a view to format the date/time field as you wish using the relational databases' internal formatting tools. For related data (data link), you can also do the formatting right in the SQL command. You can get access to this in the advanced button when looking at the data link. Just use your native database commands for formatting. Best test it in SQL Plus (Oracle) or SQL Server's management console.
Shawn.
0 -
I would like to remove time as well. The date/time attribute is presented in Results through ArcGIS server, not related data. In the source GIS data, there is no time, but when it is published through the service, the date/time unit appears through the REST call. Can something in a workflow help to remove the time portion?
0 -
@Latitude - This would be useful to my users also. Similar situation, specifically we're linked excel tables that do not display the time until viewed in GE viewer.
Thanks.
0 -
My time fields show date and time as well. Really annoying.
There's gotta be an option somewhere in SQL or thru the MXD to hide the time portion?
ken
0 -
something like this should work assuming you have a field named "start_date"
Format(START_DATE, 'yyyy/mm/dd') AS [Start Date]
0 -
Thanks for the suggestion, Zach. But where do you use that code? Somewhere in the ArcMap settings? In Geocortex? The code does not seem to fit with the way Geocortex works - they use curly brackets around the field names.
Mike
0 -
navigate to the map button on the left, click the edit button for the layer with the data link, click on the Data Link tab at the top, then click on the sprocket for the advance editing on the right side and you'll see the screen i pasted in below. The command box is where you'll need to add to your date field to format how it will look in your silverlight app. I had an example that showed the SQL, but the site has been altered and the link no longer is being used, sorry about that. The screenshot below is jsut to point you to the correct edit screen.
/customer/servlet/servlet.FileDownload?file=00P6000000elzoWEAQ
0 -
Thanks for your help Zach. But I don't think I can do that. If I understand correctly, I can only link to certain connection types - not including file geodatabases, which is what we are using.
Thanks,
Mike
0 -
yes, Data Connections are for ODBC/OLE DB/SQL, etc.
I believe you would have to change the formatting of your feature class field to display the way you want it.
0 -
Kenneth,
Have you figured out your time/date issue? I have the same problem. My date fields do not have time in them but GeoCortex uses a DateTime format and adds 12:00:00 AM to all of my date fields. I would like to remove it. Any ideas?
Screenshot of how field looks in ArcGIS:
/customer/servlet/servlet.FileDownload?file=00P6000000e88SEEAY
Screenshot of how field looks in GeoCortex Silverlight viewer:
/customer/servlet/servlet.FileDownload?file=00P6000000e88TaEAI
0 -
We are having this issue as well with the Silverlight client. What is even more odd is when adding an ESRI REST service that uses an esriFieldTypeDate it is adding a time field to some rows and not others. The esriFieldTypeDate is an integer, UNIX Epoch, the number of seconds since January 1st, 1970.
The time is set to 12:00:00 AM when the client computer has it's timezone set to GMT, or 7:00:00 PM when set to our time zone (-5 hours). It's a rather significant issue for us, as it is simply wrong to tell our users that a transaction happened at 7:00:00 PM when it did not.
0 -
I raised this issue a while back with LG and they are essentially saying that we should all be saving dates as UTC, which I don't think is a great idea, or at least it should be an option!
try using the edit tools and fields with dates in them, the times stored will be 11 hours (well for us in Melbourne) behind what I added. Really frustrating, and inherently wrong when you consider we are set up for mapping fire perimeters etc, in emergency situations and their tools are not storing 'local' time. So arcmap will now show UTC times and the GE client local, although the map tips in GE silverlight will show UTC.. so even more confusing for the user.
I'm not sure this is fixed at 4.0/2.0 but it needs to be considered.
here's the earlier thread on the date offset issue - happy reading!
(https://support.geocortex.com/EssentialsGSCForum?sub-nav=forum&main-nav=Essentials&#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906600000000AtqAAE) https://support.geocortex.com/EssentialsGSCForum?sub-nav=forum&main-nav=Essentials&id=906600000000AtqAAE
0 -
First of all, that sounds like an awesome application.
Second, you can't control the date/time formatting for the feature description or long description. The workaround I've used is to add a field to my dataset and convert the date field I want to use to whatever string format I want it to be in.
0 -
I talked to tech support about it and it is now on their priority list for future releases.
0 -
+1
0 -
While we are at it, can we please not be stuck with US date format, when the vast majority of the population of the planet doesn't use it?
0 -
+1 please.
0 -
+1
0 -
+1 more
0 -
+1
0 -
+1. Latitude developers please address this ASAP.Thanks.
0 -
+1
0 -
in workflow i tried to convert the result of a date field to string then to datetime object to get the correct value. but all failed. i could not make the value "1/13/1987 12:00:00 am" to "1/13/1987". Then i decided to use substring function to get first 10 characters of the date value, datestring.substring(0,10). Now i got the date to display the way i wanted. I have not done more tests on this. so far seems work ok.. hope this help. hopefully this will get fixed. 0 -
Hi Li, 0 -
+1 0 -
Hi, 1 -
Thanks for taking the time to write the reply, Carmen! :) 0 -
Hi, 0 -
Carmen - This doesn't seem to be working. I edited as described above as well as the Default Formatting section below the field section. I still get the time in my results. 0 -
Hi Pamela and Diane, 0
Please sign in to leave a comment.
Comments
31 comments