<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Teerasej&#039;s Adobe Flash platform blog &#187; Web Service</title>
	<atom:link href="http://flexblog.teerasej.com/category/how-to/web-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexblog.teerasej.com</link>
	<description>Let&#039;s engage user with Flash platform</description>
	<lastBuildDate>Wed, 14 Jul 2010 09:37:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/th/</creativeCommons:license>		<item>
		<title>Flex&#8217;s Date class and .NET Web service DateTime class</title>
		<link>http://flexblog.teerasej.com/2008/02/07/flexs-date-class-and-net-web-service-datetime-class-2/</link>
		<comments>http://flexblog.teerasej.com/2008/02/07/flexs-date-class-and-net-web-service-datetime-class-2/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 11:52:10 +0000</pubDate>
		<dc:creator>Greendog</dc:creator>
				<category><![CDATA[Reference]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Adobe Flash Platform]]></category>

		<guid isPermaLink="false">http://webflex.wordpress.com/2008/02/07/flexs-date-class-and-net-web-service-datetime-class/</guid>
		<description><![CDATA[
			
				
			
		




One day delay on passing Date value to DateTime value

I have mention before about my AIR project which communicate with .NET web service. There is some wrong casting type like DateTime, if you have tried to pass Flex&#8217;s Date class to .NET web service&#8217;s DateTime class directily, You will enforce that .NET web service framework <a href="http://flexblog.teerasej.com/2008/02/07/flexs-date-class-and-net-web-service-datetime-class-2/" class="more-link">More &#62;</a>


Related posts:<ol><li><a href='http://flexblog.teerasej.com/2008/02/07/flexs-date-class-and-net-web-service-datetime-class/' rel='bookmark' title='Permanent Link: Flex&#8217;s Date class and .NET Web service DateTime class'>Flex&#8217;s Date class and .NET Web service DateTime class</a></li>
<li><a href='http://flexblog.teerasej.com/2008/02/04/air-to-xfire-web-service/' rel='bookmark' title='Permanent Link: AIR to XFire Web Service'>AIR to XFire Web Service</a></li>
<li><a href='http://flexblog.teerasej.com/2008/02/04/air-with-net-web-service-custom-attribute/' rel='bookmark' title='Permanent Link: AIR with .NET web service &#8211; custom attribute'>AIR with .NET web service &#8211; custom attribute</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-left: 10px; margin-right: 10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fflexblog.teerasej.com%2F2008%2F02%2F07%2Fflexs-date-class-and-net-web-service-datetime-class-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fflexblog.teerasej.com%2F2008%2F02%2F07%2Fflexs-date-class-and-net-web-service-datetime-class-2%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1294733155352236";
/* 468x60, created 7/26/09 */
google_ad_slot = "6605950347";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<blockquote><p>One day delay on passing Date value to DateTime value</p>
</blockquote>
<p>I have mention before about my AIR project which communicate with .NET web service. There is some wrong casting type like DateTime, if you have tried to pass Flex&#8217;s Date class to .NET web service&#8217;s DateTime class directily, You will enforce that .NET web service framework will casting date value &#8220;delay&#8221; one day from given Flex&#8217;s Date.</p>
<blockquote><p>The example is </p>
<p>Flex&#8217;s Date : 01/01/2008</p>
<p>will be turned into</p>
<p>.NET Date : 12/31/2008</p>
</blockquote>
<p>The best solution that I have been using now is to send String value of Flex Date to web service, then use .NET framework to cast them back to DateTime value. This solution is proved. Nice!</p>
<p>PS. In other word, I am trying to format Flex&#8217;s DateField component&#8217;s format to match with common .NET DateTime class. It may useful ( Anybody who tried it already, please comment me! )</p>
<p>In Thai:</p>
<p>ผมเคยบ่นเกี่ยวกับปัญหาในการทำ AIR โปรเจคที่เชื่อมต่อกับ .NET Web Service มาแล้ว อย่างหนึ่งคือการส่ง Flex Date class ไปยัง .NET web service ตรงๆ ซึ่งจะทำให้เกิดปัญหา คือ .NET จะ cast value ให้มันช้าไปหนึ่งวัน! โอว ทำไมหน่ะหรอ&#8230;. นั่นสิ ทำไมล่ะ! ใครรู้ตอบผมที</p>
<blockquote><p>ตัวอย่างเช่น</p>
<p>Flex&#8217;s Date : 01/01/2008</p>
<p>จะกลายเป็น</p>
<p>.NET Date : 12/31/2008</p>
</blockquote>
<p>ซึ่งตอนนี้ยังงงๆ อยู่เลยครับ แต่วิธีที่ดีที่สุดตอนนี้คือ การส่ง string จาก flex ไป cast เป็น DateTime บน Web servcie เองครับ</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fflexblog.teerasej.com%2F2008%2F02%2F07%2Fflexs-date-class-and-net-web-service-datetime-class-2%2F" layout="standard" show_faces="true" width="450" action="like" colorscheme="light"></fb:like></p>


<p>Related posts:<ol><li><a href='http://flexblog.teerasej.com/2008/02/07/flexs-date-class-and-net-web-service-datetime-class/' rel='bookmark' title='Permanent Link: Flex&#8217;s Date class and .NET Web service DateTime class'>Flex&#8217;s Date class and .NET Web service DateTime class</a></li>
<li><a href='http://flexblog.teerasej.com/2008/02/04/air-to-xfire-web-service/' rel='bookmark' title='Permanent Link: AIR to XFire Web Service'>AIR to XFire Web Service</a></li>
<li><a href='http://flexblog.teerasej.com/2008/02/04/air-with-net-web-service-custom-attribute/' rel='bookmark' title='Permanent Link: AIR with .NET web service &#8211; custom attribute'>AIR with .NET web service &#8211; custom attribute</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flexblog.teerasej.com/2008/02/07/flexs-date-class-and-net-web-service-datetime-class-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
