<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : DateTime issue</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : DateTime issue</description>
  <pubDate>Wed, 13 May 2026 04:54:56 -700</pubDate>
  <lastBuildDate>Thu, 28 Jun 2012 13:36:48 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3504</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>DateTime issue :   Sorry, I missunderstood you....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3504&amp;PID=13931#13931</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3504<br /><strong>Posted:</strong> 28-Jun-2012 at 1:36pm<br /><br />Sorry, I missunderstood you. Both DevForce and Entity Framework&nbsp;use DateTimeKind.Unspecified for any DateTime property, so nothing should mess with it, because there isn't enough information to do any conversion. Are you setting the DateTimeKind yourself to something other than Unspecified?]]>
   </description>
   <pubDate>Thu, 28 Jun 2012 13:36:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3504&amp;PID=13931#13931</guid>
  </item> 
  <item>
   <title>DateTime issue : Hi,Thanks for the info..However,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3504&amp;PID=13926#13926</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3504<br /><strong>Posted:</strong> 28-Jun-2012 at 2:22am<br /><br />Hi,<div><br></div><div>Thanks for the info..</div><div>However, I'm having hard time understanding this..&nbsp;</div><div>Our requirement is just simple, regardless of the timezone between client and server, we want to save and retrieve the date value in the way we entered it.</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Thu, 28 Jun 2012 02:22:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3504&amp;PID=13926#13926</guid>
  </item> 
  <item>
   <title>DateTime issue : If your application deals with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3504&amp;PID=13885#13885</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3504<br /><strong>Posted:</strong> 21-Jun-2012 at 11:01am<br /><br />If your application deals with multiple timezones you should store dates and times relative to&nbsp;<span style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px; text-align: left; ">Coordinated Universal Time (UTC) and then convert them to local time and back on the client. The easiest way to do that is by using DateTimeOffset instead of DateTime. DateTimeOffset represents a point in time relative to UTC and has all the conversion logic built-in to get the local time through the LocalDateTime property.&nbsp;</span><div><span style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px; text-align: left; "><br></span></div><div><span style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px; text-align: left; ">If you can't change your data model to use DateTimeOffset, then you should do the conversion yourself and always store data time in UTC. The following post has some useful information regarding this topic.</span></div><div><span style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px; text-align: left; "><br></span></div><div><a href="http://stackoverflow.com/questi&#111;ns/246498/creating-a-datetime-in-a-specific-time-z&#111;ne-in-c-sharp-fx-3-5" target="_blank">http://stackoverflow.com/questions/246498/creating-a-datetime-in-a-specific-time-zone-in-c-sharp-fx-3-5</a></div>]]>
   </description>
   <pubDate>Thu, 21 Jun 2012 11:01:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3504&amp;PID=13885#13885</guid>
  </item> 
  <item>
   <title>DateTime issue : Hi,We have a problem in our application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3504&amp;PID=13884#13884</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3504<br /><strong>Posted:</strong> 21-Jun-2012 at 3:47am<br /><br />Hi,<div><br></div><div>We have a problem in our application that if our client end has a timezone different to the server's timezone the date is converted to the database.</div><div><br></div><div>How can we eliminate that by applying fixes to all datetime values without applying it to each field of each entity?</div><div><br></div><div>BTW, we're using Database First approach.</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Thu, 21 Jun 2012 03:47:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3504&amp;PID=13884#13884</guid>
  </item> 
 </channel>
</rss>