<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Date Picker Help in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270476#M7060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;J, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for info and the links. I will defenitely try the silverlight examples and the code you provided. The API I was trying link was for the DatePickerStyle Property. If you type that it in the API search, you should find easily. Thanks again for the info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 10:07:36 GMT</pubDate>
    <dc:creator>gabrielvazquez</dc:creator>
    <dc:date>2011-08-05T10:07:36Z</dc:date>
    <item>
      <title>Date Picker Help</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270472#M7056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to replicate the below date picker example, however I continue to recieve the same errors.&amp;nbsp; N&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/api_start.htm"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/api_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I continue to have issues with the following lines of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; _myTimeExtent.Start = StartDate.SelectedDate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; _myTimeExtent.End = EndDate.SelectedDate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error reads: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cannot implicitly convert type 'System.DateTime?' to System.DateTime'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if this is the bext example to work with when trying to implement a datepicker to query a layer, but this is the only I could find. Has anyone had success implementing this example or can someone share how to implement a date query using a datepicker.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 14:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270472#M7056</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-08-04T14:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date Picker Help</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270473#M7057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;DateTime? means the object can be nullable, so you need to do an extra step to get the value:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
DateTime? dateOrNull = myCalendar.SelectedDate; 
if (dateOrNull != null) 
{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime newSelectedDate = dateOrNull.Value; 
} 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a MSDN reference: &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/1t3y8s4s(VS.80).aspx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/1t3y8s4s(VS.80).aspx&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270473#M7057</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2021-12-11T13:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date Picker Help</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270474#M7058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was having issues with your code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually did the following, however its not working. I am not recieving any errors, but I believe its not communicating or outputting the data. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_myTimeExtent.Start = DateTime.Parse(StartDate.SelectedDate.ToString());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_myTimeExtent.End = DateTime.Parse(EndDate.SelectedDate.ToString());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I am wondering now if something like this would be better accomplished using a querytask.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 17:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270474#M7058</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-08-04T17:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date Picker Help</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270475#M7059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;gabriel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried using FIDDLER to moniter your ouput and input?&amp;nbsp; I think Jennifer Link once posted some instruction on how to use fiddler so if you search the forums for fiddler you might find it.&amp;nbsp; Either way just download it and make sure to have the webforms tab pressed and the textView tab pressed and in the webforms window you will see the request you send to the server and in the textview window you will see the response from the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am attempting to replicate the below date picker example, however I continue to recieve the same errors. N&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/sil.../api_start.htm"&gt;http://help.arcgis.com/en/webapi/sil.../api_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That link takes me to start page of the API ref so I'm not entirely sure what you are trying to do or the example you are trying to write but I have linked the mircosoft date picker up with the query task&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This date picker&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html"&gt;http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can download all of mircosoft code here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://silverlight.codeplex.com/"&gt;http://silverlight.codeplex.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the query but you might have to reformat the date coming from the pick to match your SDE or Geodatabase format.&amp;nbsp; Something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;query.Where = string.Format((To_Date(ENTRYDATE, 'YYYY-MM-DD HH24:MI:SS') between To_Date('{0}','MM/DD/YYYY HH:MI:SS AM') and To_Date('{1}','MM/DD/YYYY HH:MI:SS AM')), beginDate.SelectedDate, EndDate.SelectedDate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 20:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270475#M7059</guid>
      <dc:creator>JMcNeil</dc:creator>
      <dc:date>2011-08-04T20:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date Picker Help</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270476#M7060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;J, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for info and the links. I will defenitely try the silverlight examples and the code you provided. The API I was trying link was for the DatePickerStyle Property. If you type that it in the API search, you should find easily. Thanks again for the info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 10:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270476#M7060</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-08-05T10:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date Picker Help</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270477#M7061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I went back and tried to create a&amp;nbsp; single date query using a datepicker, and it doesnt seem to be working. So I thought I would check the ArcGIS Server Layer the query is using. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can query the layer through the services directory/ rest/services, however&amp;nbsp; I have to query the layer using the following format&amp;nbsp; "111559680000" to recieve a result. I've also found a few older threads linked to this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/20426-Did-the-date-format-change-for-Query-REST-Post-JSON-responses-at-ags-10?highlight=query+date+field+rest"&gt;http://forums.arcgis.com/threads/20426-Did-the-date-format-change-for-Query-REST-Post-JSON-responses-at-ags-10?highlight=query+date+field+rest&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/16644-Date-Conversion-Problems-REST-lt-gt-Silverlight?highlight=Silverlight+time+conversion"&gt;http://forums.arcgis.com/threads/16644-Date-Conversion-Problems-REST-lt-gt-Silverlight?highlight=Silverlight+time+conversion&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can also obtain a result through the rest services using the where query -&amp;nbsp; example: "IncidentDate" = '2008-08-31 00:00:00'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am guessing I have to do some conversion, similar to below. However if anyone has any additional examples it would help. Thanks. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/cc165448.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc165448.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 19:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270477#M7061</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-08-11T19:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date Picker Help</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270478#M7062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was able to get the query working using a date picker, by applying the following code to the query task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DateTime fromdate=Convert.ToDateTime(FromDate.SelectedDate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DateTime todate =Convert.ToDateTime(ToDate.SelectedDate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;query.TimeExtent=new ESRI.ArcGIS.Client.TimeExtent(new DateTime(1970, 1, 4, 0, 0, 0), new DateTime(1971, 4, 12, 0, 0, 0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;query.TimeExtent=new ESRI.ArcGIS.Client.TimeExtent(fromdate,todate);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 13:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-picker-help/m-p/270478#M7062</guid>
      <dc:creator>gabrielvazquez</dc:creator>
      <dc:date>2011-08-18T13:48:36Z</dc:date>
    </item>
  </channel>
</rss>

