<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Convert Date to String and String to Date in Java</title>
	<atom:link href="http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/</link>
	<description>Tracing the course of Web Technology</description>
	<lastBuildDate>Tue, 07 Feb 2012 06:54:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Jonathan Brophy</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-41221</link>
		<dc:creator>Jonathan Brophy</dc:creator>
		<pubDate>Sat, 17 Dec 2011 17:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-41221</guid>
		<description>Thanks for this :-)</description>
		<content:encoded><![CDATA[<p>Thanks for this <img src='http://techtracer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinay</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-41067</link>
		<dc:creator>vinay</dc:creator>
		<pubDate>Mon, 03 Oct 2011 15:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-41067</guid>
		<description>it does&#039;nt work because it says &quot;unparseable Date&quot; &quot;2010-04-02&quot; when i take the format like
&quot;yyyy-MM-dd&quot; ,i dont knw why it does&#039;nt work. every where i see the same code but it does&#039;nt work in my system
please tell me any other way becoz  i have tried different pattern also
none of them are usefull;
finally i converted every thing into string;</description>
		<content:encoded><![CDATA[<p>it does&#8217;nt work because it says &#8220;unparseable Date&#8221; &#8220;2010-04-02&#8243; when i take the format like<br />
&#8220;yyyy-MM-dd&#8221; ,i dont knw why it does&#8217;nt work. every where i see the same code but it does&#8217;nt work in my system<br />
please tell me any other way becoz  i have tried different pattern also<br />
none of them are usefull;<br />
finally i converted every thing into string;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arun</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-40983</link>
		<dc:creator>arun</dc:creator>
		<pubDate>Mon, 29 Aug 2011 11:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-40983</guid>
		<description>Hi all:

I need to compare oracle column which containg date as a values with the current system date in the servlet page but I dont know how to do it. Anyone can tell me the code. It&#039;s really very urgent.</description>
		<content:encoded><![CDATA[<p>Hi all:</p>
<p>I need to compare oracle column which containg date as a values with the current system date in the servlet page but I dont know how to do it. Anyone can tell me the code. It&#8217;s really very urgent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Merry</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-40879</link>
		<dc:creator>Josh Merry</dc:creator>
		<pubDate>Wed, 13 Jul 2011 17:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-40879</guid>
		<description>Thank you, this is a problem I face all the time, and it&#039;s nice to have a quick easy solution.</description>
		<content:encoded><![CDATA[<p>Thank you, this is a problem I face all the time, and it&#8217;s nice to have a quick easy solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: queenie</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-39605</link>
		<dc:creator>queenie</dc:creator>
		<pubDate>Sun, 03 Apr 2011 17:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-39605</guid>
		<description>this code wil work well in java application, but not in midlet for java mobile, anybody can help how covert string date from recordstore back to datafield date formar.


(I also faced this problem,anybody help?)</description>
		<content:encoded><![CDATA[<p>this code wil work well in java application, but not in midlet for java mobile, anybody can help how covert string date from recordstore back to datafield date formar.</p>
<p>(I also faced this problem,anybody help?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-39097</link>
		<dc:creator>abhishek</dc:creator>
		<pubDate>Sat, 26 Feb 2011 16:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-39097</guid>
		<description>Hi All,
The solution given above will work when you will specify the date in string i.e. hard coded.
but it will not work for the fol  scenario:
When you will fetch the current date
say 
Date date =new Date();
This will return you the current date in the format as
 Wed Jan 01 11:54:53 GMT+05:30 2003 

The DateFormat class instance will not be able to parse it.

can anybody please provide solution for this.
thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi All,<br />
The solution given above will work when you will specify the date in string i.e. hard coded.<br />
but it will not work for the fol  scenario:<br />
When you will fetch the current date<br />
say<br />
Date date =new Date();<br />
This will return you the current date in the format as<br />
 Wed Jan 01 11:54:53 GMT+05:30 2003 </p>
<p>The DateFormat class instance will not be able to parse it.</p>
<p>can anybody please provide solution for this.<br />
thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bulz</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-38631</link>
		<dc:creator>bulz</dc:creator>
		<pubDate>Wed, 12 Jan 2011 07:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-38631</guid>
		<description>this code wil work well in java application, but not in midlet for java mobile, anybody can help how covert string date from recordstore back to datafield date formar.</description>
		<content:encoded><![CDATA[<p>this code wil work well in java application, but not in midlet for java mobile, anybody can help how covert string date from recordstore back to datafield date formar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien Stimmel</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-36725</link>
		<dc:creator>Damien Stimmel</dc:creator>
		<pubDate>Fri, 05 Mar 2010 01:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-36725</guid>
		<description>Hi, I found this post while searching for help with JavaScript. I&#039;ve recently changed browsers from Safari to Internet Explorer 7. Just recently I seem to have a issue with loading JavaScript. Every time I go on a site that needs Javascript, my computer freezes and I get a &quot;runtime error javascript.JSException: Unknown name&quot;. I can&#039;t seem to find out how to fix the problem. Any aid is greatly appreciated! Thanks</description>
		<content:encoded><![CDATA[<p>Hi, I found this post while searching for help with JavaScript. I&#8217;ve recently changed browsers from Safari to Internet Explorer 7. Just recently I seem to have a issue with loading JavaScript. Every time I go on a site that needs Javascript, my computer freezes and I get a &#8220;runtime error javascript.JSException: Unknown name&#8221;. I can&#8217;t seem to find out how to fix the problem. Any aid is greatly appreciated! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pan</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-36379</link>
		<dc:creator>pan</dc:creator>
		<pubDate>Mon, 11 Jan 2010 14:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-36379</guid>
		<description>Default DateStringFormat:  Tue Feb 24 17:39:35 JST 1998
--------------------------------------------------------------------
[date2string]
String aString = new String();
aString = (new Date()).toString();

[string2date]
DateFormat format = new SimpleDateFormat(&quot;E MMM d HH:mm:ss z yyyy&quot;,new Locale(&quot;en&quot;));
Date aDate = new Date();
aDate = (Date)format.parse(aString);</description>
		<content:encoded><![CDATA[<p>Default DateStringFormat:  Tue Feb 24 17:39:35 JST 1998<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
[date2string]<br />
String aString = new String();<br />
aString = (new Date()).toString();</p>
<p>[string2date]<br />
DateFormat format = new SimpleDateFormat(&#8220;E MMM d HH:mm:ss z yyyy&#8221;,new Locale(&#8220;en&#8221;));<br />
Date aDate = new Date();<br />
aDate = (Date)format.parse(aString);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ?????????????</title>
		<link>http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/comment-page-1/#comment-21521</link>
		<dc:creator>?????????????</dc:creator>
		<pubDate>Tue, 31 Mar 2009 17:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://techtracer.com/2007/03/28/convert-date-to-string-and-string-to-date-in-java/#comment-21521</guid>
		<description>String str = &quot;26/08/1994&quot;;
SimpleDateFormat formatter = new SimpleDateFormat(&quot;dd/MM/yyyy&quot;); //please notice the capital M
Date date = formatter.parse(str);

i chose string to formatter.parse(str) is error</description>
		<content:encoded><![CDATA[<p>String str = &#8220;26/08/1994&#8243;;<br />
SimpleDateFormat formatter = new SimpleDateFormat(&#8220;dd/MM/yyyy&#8221;); //please notice the capital M<br />
Date date = formatter.parse(str);</p>
<p>i chose string to formatter.parse(str) is error</p>
]]></content:encoded>
	</item>
</channel>
</rss>

