<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" >
	<title>Javas Blogs global</title>
	<link rel="alternate" type="text/html" href="http://www.javasblogs.com/" />
	<tagline></tagline>
	<modified></modified>
	<generator url="" version="">BeVerbal RSS Feed Generator</generator>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Using and formatting DateTime and TimeSpan data types</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/51561621.html" />
		<modified>2008-11-13T12:19+00:00
		<content type="html" mode="escaped" xml:base="">One of the most useful constructs in the. NET Framework is the ease of use for date/time manipulation. I need to manipulate dates and time frequently either displaying them or parsing strings containing them.
DateTime dt;dt = DateTime. MinValue;Console. WriteLine(dt. ToString());dt = DateTime. MaxValue;Console. WriteLine(dt. ToString());dt = DateTime. Today;Console. WriteLine(dt. ToString());dt = DateTime. Now;Console. WriteLine(dt. ToString());dt = DateTime. UtcNow;Console. WriteLine(dt. ToString());
represents today with the time component in Universal Coordinated Time. Taking the date of &lt;a href=&#039;http://this.funnyblogs.net/&#039;&gt;this&lt;/a&gt; post again it&amp;#8217;ll be year 2007. November 2nd. And (for example) the time is 1st hour. 1st minute and 34th second. I&amp;#8217;m in Singapore so the time zone offset is 8 hours ahead of UTC.
is particularly useful when you deal with international data where the dates and times can span across many countries. In this case having one standard time offset makes manipulating and displaying dates and times easy. Then people won&amp;#8217;t keep asking &amp;#8220;Is this American time or London time or Singapore time?&amp;#8221; Just &lt;a href=&#039;http://display.wordblogs.net/&#039;&gt;display&lt;/a&gt; and let the users add or subtract &lt;a href=&#039;http://their.wordblogs.net/&#039;&gt;their&lt;/a&gt; own time zone offset to obtain data in their local time.
DateTime dt;// 2nd Nov 2007. 1:15 pm. 45th second. 853rd milliseconddt = new DateTime(2007. 11. 2. 13. 15. 45. 853);Console. WriteLine(dt. ToString());// get the same date by parsing a stringdt = DateTime. ParseExact(&quot;20071102131545&quot;. &quot;yyyyMMddHHmmss&quot; null);Console. WriteLine(dt. ToString());// get the same date by parsing a string formatted differentlydt = DateTime. ParseExact(&quot;02/11/2007 13:15:45&quot;. &quot;dd/MM/yyyy HH:mm:ss&quot; null);Console. WriteLine(dt. ToString());
 I like to have exact control &lt;a href=&#039;http://over.over80blogs.com/&#039;&gt;over&lt;/a&gt; how a date/time string is interpreted and I want any culture-specific information to be left out of the parsing. If you know exactly what you have and what you need it&amp;#8217;s better to do it yourself rather than letting the code do implicit conversions. I&amp;#8217;m paranoid that way&amp;#8230;
DateTime dt;dt = new DateTime(2007. 11. 2. 13. 15. 45. 853);// get 2 Nov 2007 01:15 PMConsole. WriteLine(dt. ToString(&quot;d MMM yyyy hh:mm tt&quot;));// get November 02. 2007 13:15Console. WriteLine(dt. ToString(&quot;MMMM dd yyyy HH:mm&quot;));// get 2007-11-02T13:15:45.8+08:00Console. WriteLine(dt. ToString(&quot;yyyy-MM-ddTHH:mm:ss fzzz&quot;));
DateTime dtStart dtEnd;int iDaysInMonth = 0;dtStart = DateTime. Now;dtStart = new DateTime(dtStart. Year dtStart. Month. 1. 0. 0. 0. 0);dtEnd = DateTime. Now;iDaysInMonth = DateTime. DaysInMonth(dtEnd. Year dtEnd. Month);dtEnd = new DateTime(dtEnd. Year dtEnd. Month iDaysInMonth. 23. 59. 59. 999);Console. WriteLine(&quot;The first day of the month is {0}&quot; dtStart. ToString(&quot;dd/MM/yyyy HH:mm:ss&quot;));Console. WriteLine(&quot;The last day of the month is {0}&quot; dtEnd. ToString(&quot;dd/MM/yyyy HH:mm:ss&quot;));
function. The number of days in the specific month is also the last day of the month. No fuss no muss.
This is way better than you implementing a custom function which &lt;a href=&#039;http://probably.wordsblogs.com/&#039;&gt;probably&lt;/a&gt; involves some arcane calculation with leap and non-leap years. If you do it wrongly you&amp;#8217;ll end up with 28 days instead of 29 for certain February&amp;#8217;s. The 
DateTime dtStart dtEnd;dtStart = new DateTime(2007. 10. 27);dtEnd = new DateTime(2007. 11. 2. 13. 15. 45. 853);TimeSpan ts = dtEnd - dtStart;Console. WriteLine(ts. Days);Console. WriteLine(ts. Hours);Console. WriteLine(ts. Milliseconds);Console. WriteLine(ts. Minutes);Console. WriteLine(ts. Seconds);Console. WriteLine(ts. Ticks);Console. WriteLine(ts. TotalDays);Console. WriteLine(ts. TotalHours);Console. WriteLine(ts. TotalMilliseconds);Console. WriteLine(ts. TotalMinutes);Console. WriteLine(ts. TotalSeconds);
in the duration. Similarly for the other &amp;#8220;Total&amp;#8221;-prepended properties. Just print out the values to get a feel of the differences.
Now for a more specific and practical example. How do we calculate the number of days between two dates?
DateTime dtStart dtEnd;TimeSpan ts;dtStart = new DateTime(2007. 2. 26);dtEnd = new DateTime(2007. 3. 2);ts = dtEnd - dtStart;Console. WriteLine(ts. TotalDays);dtStart = new DateTime(2008. 2. 26);dtEnd = new DateTime(2008. 3. 2);ts = dtEnd - dtStart;Console. WriteLine(ts. TotalDays);
The above gives 4 days (26 Feb. 27 Feb. 28 Feb and 1 Mar) and 5 days (as before plus 29 Feb) respectively. Note that the leap years are also taken &lt;a href=&#039;http://care.mydietblogs.com/&#039;&gt;care&lt;/a&gt; of. The end date is not included in the calculation. Since the end date is at the very start of the day (0th hour. 0th minute. 0th second) it&amp;#8217;s not counted as far as duration is concerned.
But what if you need the number of months instead? How do you do it? Well you don&amp;#8217;t need 
DateTime dtStart dtEnd;dtStart = new DateTime(2006. 11. 15);dtEnd = new DateTime(2007. 2. 15);int iNumberOfMonths = (dtEnd. Year * 12 + dtEnd. Month) - (dtStart. Year * 12 + dtStart. Month);Console. WriteLine(iNumberOfMonths);
The DateTime. MinValue represents year 0001. January 1st on the 0th hour the 0th minute and 0th second.
The DateTime. MinValue represents year 9999. December 31st on the 23rd hour the 59th minute and 59th second.
XHTML: You can use these tags: &amp;lt;a href=&amp;quot;&amp;quot; title=&amp;quot;&amp;quot;&amp;gt; &amp;lt;abbr title=&amp;quot;&amp;quot;&amp;gt; &amp;lt;acronym title=&amp;quot;&amp;quot;&amp;gt; &amp;lt;b&amp;gt; &amp;lt;blockquote cite=&amp;quot;&amp;quot;&amp;gt; &amp;lt;cite&amp;gt; &amp;lt;code&amp;gt; &amp;lt;del datetime=&amp;quot;&amp;quot;&amp;gt; &amp;lt;em&amp;gt; &amp;lt;i&amp;gt; &amp;lt;q cite=&amp;quot;&amp;quot;&amp;gt; &amp;lt;strike&amp;gt; &amp;lt;strong&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://polymathprogrammer.com/2007/11/02/using-and-formatting-datetime-and-timespan/&#039;&gt;http://polymathprogrammer.com/2007/11/02/using-and-formatting-datetime-and-timespan/&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>jtable - break toString() to get different rows</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/51200119.html" />
		<modified>2008-03-12T23:10+00:00
		<content type="html" mode="escaped" xml:base="">I have a toString which returns the label place author and more things. I just be to alter the jtable that only shows the name but not the full toString().
Please help. &lt;a href=&#039;http://this.funnyblogs.net/&#039;&gt;this&lt;/a&gt; is &lt;a href=&#039;http://really.wordblogs.net/&#039;&gt;really&lt;/a&gt; urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You seem to be here the first measure so let me give you a friendly advice: The problem is not at all urgent for anyone but you. Any pressure will cause to freeze some neurals in the brains of the persons reading and answering here and this may decrease the answering performance in the forum and can lead to overall missing a question (perhaps yours).
You never say what is wrong what doesn&#039;t work so there is no way for any of us to &lt;a href=&#039;http://help.lifeadviceblogs.com/&#039;&gt;help&lt;/a&gt; you. People on the forum help others voluntarily it&#039;s not &lt;a href=&#039;http://their.wordblogs.net/&#039;&gt;their&lt;/a&gt; job. You need to help them back up you. Please learn how to ask questions first: http://faq javaranch com/java/HowToAskQuestionsOnJavaRanch Also your urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!! statement gets us angry. Please don&#039;t use it.
-&amp;gt; I just be to make the jtable that only shows the name but not the beat toString(). Then you need to extract the label from the full arrange. Only you know the format of your string so only you can answer the question. You could use something simply like a StringTokenizer or you could use the &lt;a href=&#039;http://arrange.wordblogs.net/&#039;&gt;arrange&lt;/a&gt; indexOf(...) method to find your first delimiter and then use the Sring subString(...) method to get the name.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5229276&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5229276&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>jtable - break toString() to get different rows</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/51200120.html" />
		<modified>2008-03-12T23:10+00:00
		<content type="html" mode="escaped" xml:base="">I have a toString which returns the name place author and more things. I just &lt;a href=&#039;http://want.wordsblogs.com/&#039;&gt;want&lt;/a&gt; to make the jtable that only shows the name but not the beat toString().
gratify help. this is really urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You seem to be here the first time so let me give you a friendly advice: The problem is not at all urgent for anyone but you. Any pressure ordain cause to stand still some neurals in the brains of the persons reading and answering here and this may reduce the answering performance in the forum and can bring about to overall &lt;a href=&#039;http://missing.musicalblogs.com/&#039;&gt;missing&lt;/a&gt; a &lt;a href=&#039;http://question.wordsblogs.com/&#039;&gt;question&lt;/a&gt; (perhaps yours).
You never say what is wrong what doesn&#039;t bring home the bacon so there is no way for any of us to back up you. People on the forum &lt;a href=&#039;http://help.teenadviceblogs.com/&#039;&gt;help&lt;/a&gt; others voluntarily it&#039;s not their job. You be to help them help you. gratify learn how to ask questions first: http://faq javaranch com/java/HowToAskQuestionsOnJavaRanch Also your urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!! statement gets us angry. Please don&#039;t use it.
-&amp;gt; I just be to make the jtable that only shows the name but not the full toString(). Then you need to remove the label from the beat string. Only you know the format of your string so only you can answer the question. You could use something simply like a StringTokenizer or you could use the String indexOf(...) method to find your first delimiter and then use the Sring subString(...) method to get the name.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://forum.java.sun.com/thread.jspa?threadID=5229276&#039;&gt;http://forum.java.sun.com/thread.jspa?threadID=5229276&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>vb.net Argument &amp;#39;Index&amp;#39; is not a valid value</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/51030657.html" />
		<modified>2008-01-01T21:15+00:00
		<content type="html" mode="escaped" xml:base="">Hello it&#039;s been a while since I&#039;ve posted on here. I be a little help with the error I&#039;m receiving. A little history on the air... I&#039;ve been trying to figure out how to retrieve and modify compose properties that I have in my membership profile for a specific user by user name. I couldn&#039;t see how using the merchandise profilemanager would allow me to directly display or &lt;a href=&#039;http://edit.careerchangeblogs.com/&#039;&gt;edit&lt;/a&gt; any user property arrange. When I step through the code it errors on the line txt_FirstName text = dic_ProfileProperties(&amp;quot;FirstName&amp;quot;) tostring() Any help would be greatly appreciated. Here&#039;s the label:
Private Sub fillUserProfile()Dim connstr As arrange = ConfigurationManager. ConnectionStrings(&amp;quot;LMRConnectionString&amp;quot;). ConnectionStringDim channelise As SqlConnection = New SqlConnection(connstr)Dim sql As String = &amp;quot;decide aspnet_Users. UserName aspnet_compose. PropertyNames aspnet_Profile. PropertyValuesString FROM aspnet_Users INNER connect aspnet_Profile ON aspnet_Users. UserId = aspnet_Profile. UserId WHERE aspnet_Users. UserName = &#039;&amp;quot; &amp;amp; GridViewMemberUser. SelectedValue. ToString() &amp;amp; &amp;quot;&#039;&amp;quot;Dim cmd As New SqlCommand(sql conn)conn. Open()Dim reader As SqlDataReader = cmd. ExecuteReader()reader. Read()If reader. HasRows ThenDim userPropertyNames As String = reader(&amp;quot;PropertyNames&amp;quot;)Dim userPropertyString As String = reader(&amp;quot;PropertyValuesString&amp;quot;)If userPropertyNames &amp;lt;&amp;gt; &amp;quot;&amp;quot; ThenDim str_PropertyNames As Array = userPropertyNames. Split(&amp;quot;:&amp;quot;)Dim i As IntegerDim int_PropertyCount As Integer = UBound(str_PropertyNames)Dim dic_ProfileProperties As New Collection()Dim strkeyName As StringDim strkeyType As StringDim strkeyStart As StringDim strkeyEnd As StringDim strProperty As StringFor i = 0 To int_PropertyCount go 4If i &amp;lt; int_PropertyCount ThenstrkeyName = str_PropertyNames(i)strkeyType = str_PropertyNames(i + 1)strkeyStart = str_PropertyNames(i + 2)strkeyEnd = str_PropertyNames(i + 3)strProperty = userPropertyString. Substring(CInt(strkeyStart). CInt(strkeyEnd))dic_ProfileProperties. Add(strkeyName strProperty)End IfNexttxt_affiliate. Text = dic_ProfileProperties(&amp;quot;affiliate&amp;quot;). ToString()txt_FirstName. Text = dic_ProfileProperties(&amp;quot;FirstName&amp;quot;). ToString()txt_LastName. Text = dic_ProfileProperties(&amp;quot;LastName&amp;quot;). ToString()txt_Address1. Text = dic_ProfileProperties(&amp;quot;Address1&amp;quot;). ToString()txt_communicate2. Text = dic_ProfileProperties(&amp;quot;Address2&amp;quot;). ToString()txt_City. Text = dic_ProfileProperties(&amp;quot;City&amp;quot;)..&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.xtremevbtalk.com/showthread.php?t=289696&#039;&gt;http://www.xtremevbtalk.com/showthread.php?t=289696&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Enum Conversion.</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/50820078.html" />
		<modified>2007-12-15T15:03+00:00
		<content type="html" mode="escaped" xml:base="">In &lt;a href=&#039;http://this.funnyblogs.net/&#039;&gt;this&lt;/a&gt; affix I will demonstrate how to convert To String. String To and Value to.
First of all let us create an enumeration:
It seams that nothing can be easier. We easily can use method to alter to arrange. It would bring home the bacon fine if we try to alter Colors. color. Colors. Blue or Color. Red. However what if we try to convert to String value like this:
The output will be &amp;#8216;3&amp;#8242; instead of &amp;#8216;Blue. color&amp;#8217;.
There are two ways we can solve this problem:
In inspect you decorated your enumertion with but be to create the determine use or &lt;a href=&#039;http://methods.choiceblogs.com/&#039;&gt;methods&lt;/a&gt; with format &amp;#8220;D&amp;#8221; for decimal form or &amp;#8220;X&amp;#8221; for hexadecimal one.
4: Console. WriteLine(Enum. change(typeof(Colors) myColor. &amp;#8220;x&amp;#8221;));
The method with format &amp;#8220;D&amp;#8221; ordain output &amp;#8216;3&amp;#8242; and with change &amp;#8220;X&amp;#8221; ordain give us &amp;#8216;00000003&amp;#8242;. 
In the example above colorString must be inspect exactly. There&amp;#8217;s an override for method where you can ask to ignore case.
Update: Thanks to Omer Mor (see his mention below) who pointed out that we don&amp;#8217;t have to invoke ToObject() method. We can simply direct value to Enum write.
This entry was posted onOctober 19. 2007 at 7:29 amand is filed under. You can go any responses to this entry &lt;a href=&#039;http://through.wordsblogs.com/&#039;&gt;through&lt;/a&gt; the cater. You can or from your own site.
To alter a value to enum. I accept a simple explicit cast will bring home the bacon:
public Colors Value2Enum(int colorValue){ return (Colors)colorValue;}
Thanks for the mention. It&amp;#8217;s not just simpler it&amp;#8217;s also more efficient way. When you use ToObject you&amp;#8217;ll have an extra unboxing. 
I can&amp;#8217;t accept that I didn&amp;#8217;t put it in my blog originally because when I have to deal with Enum types in my code. I don&amp;#8217;t label ToObject. I use simple casting just desire you suggested.
&amp;lt;a href=&amp;quot;&amp;quot; call=&amp;quot;&amp;quot;&amp;gt; &amp;lt;abbr title=&amp;quot;&amp;quot;&amp;gt; &amp;lt;acronym title=&amp;quot;&amp;quot;&amp;gt; &amp;lt;b&amp;gt; &amp;lt;blockquote have in mind=&amp;quot;&amp;quot;&amp;gt; &amp;lt;have in mind&amp;gt; &amp;lt;code&amp;gt; &amp;lt;del datetime=&amp;quot;&amp;quot;&amp;gt; &amp;lt;em&amp;gt; &amp;lt;i&amp;gt; &amp;lt;q cite=&amp;quot;&amp;quot;&amp;gt; &amp;lt;touch&amp;gt; &amp;lt;strong&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://vkreynin.wordpress.com/2007/10/19/enum-conversion/&#039;&gt;http://vkreynin.wordpress.com/2007/10/19/enum-conversion/&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>cast Double to String in java</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/50621074.html" />
		<modified>2007-12-09T13:37+00:00
		<content type="html" mode="escaped" xml:base="">Double to String casting &amp;#8230;if you be to display its arrange in number change (like &lt;a href=&#039;http://this.gamblerblogs.com/&#039;&gt;this&lt;/a&gt; ###,###,##0.00) do not use these lines &amp;#8230;
manifold sk = 12300000000.35; System out println(sk toString()); System out println(String valueOf(sk));
they would result like these ones:
1.230000000035E101.230000000035E10
Double sk = 12300000000.35; NumberFormat nm = NumberFormat getNumberInstance(); System out println(nm change(sk));
the latter prove would be this:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://oohbegitu.wordpress.com/2007/10/26/cast-double-to-string-in-java/&#039;&gt;http://oohbegitu.wordpress.com/2007/10/26/cast-double-to-string-in-java/&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>cast Double to String in java</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/50621049.html" />
		<modified>2007-12-09T13:37+00:00
		<content type="html" mode="escaped" xml:base="">Double to String casting &amp;#8230;if you want to show its &lt;a href=&#039;http://arrange.careerchangeblogs.com/&#039;&gt;arrange&lt;/a&gt; in number format (like this ###,###,##0.00) do not use these lines &amp;#8230;
Double sk = 12300000000.35; System out println(sk toString()); System out println(String valueOf(sk));
they would prove desire these ones:
1.230000000035E101.230000000035E10
Double sk = 12300000000.35; NumberFormat nm = NumberFormat getNumberInstance(); System out println(nm format(sk));
the latter result would be this:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://oohbegitu.wordpress.com/2007/10/26/cast-double-to-string-in-java/&#039;&gt;http://oohbegitu.wordpress.com/2007/10/26/cast-double-to-string-in-java/&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>cast Double to String in java</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/50621043.html" />
		<modified>2007-12-09T13:37+00:00
		<content type="html" mode="escaped" xml:base="">Double to String casting &amp;#8230;if you want to display its String in number format (desire this ###,###,##0.00) do not use these lines &amp;#8230;
Double sk = 12300000000.35; System out println(sk toString()); System out println(arrange valueOf(sk));
they would prove desire these ones:
1.230000000035E101.230000000035E10
Double sk = 12300000000.35; NumberFormat nm = NumberFormat getNumberInstance(); System out println(nm format(sk));
the latter result would be this:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://oohbegitu.wordpress.com/2007/10/26/cast-double-to-string-in-java/&#039;&gt;http://oohbegitu.wordpress.com/2007/10/26/cast-double-to-string-in-java/&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>RE: toString( (nathansasek)</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/50426006.html" />
		<modified>2007-11-27T20:01+00:00
		<content type="html" mode="escaped" xml:base="">I think there are a few ways that you could do &lt;a href=&#039;http://this.funnyblogs.net/&#039;&gt;this&lt;/a&gt; using the. ToString method.  DateTime dt = Convert. ToDateTime(string); lbl. Text = dt. ToString(&quot;t&quot;);  or  DateTime dt = Convert. ToDateTime(arrange); lbl. Text = dt. ToString(&quot;hh:mm tt&quot;);  Give these a try.  Nathan 
(janetb) 10/30/2007 2:27:27 PMAnyone able to tell me what I should be doing? Sql2005 asp net 2.0 -  lbl. Text = alter. ToDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;start_date&quot;). ToString(&quot;d&quot;)) gives me Input string was not in a change by reversal format.  I&#039;ve tried variations but to no apply.   Thanks.  
(janetb) 10/30/2007 2:39:53 PMThis works but surely I&#039;m beating my head against the protect and there&#039;s an easier way to dispaly 4:15 pm?  Left(FormatDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;end_go out&quot;). DateFormat. LongTime). InStr(4. FormatDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;end_date&quot;). DateFormat. LongTime). &quot;:&quot;) - 1) &amp; &quot; &quot; &amp; Right(FormatDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;end_date&quot;). DateFormat. LongTime). 2) 
(nathansasek) 10/30/2007 3:01:54 PMI evaluate there are a few ways that you could do this using the. ToString method.  DateTime dt = Convert. ToDateTime(string); lbl. Text = dt. ToString(&quot;t&quot;);  or  DateTime dt = alter. ToDateTime(string); lbl. Text = dt. ToString(&quot;hh:mm tt&quot;);  furnish these a try.  Nathan &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.aspmessageboard.com/forum/showMessage.asp?F=36&amp;P=1&amp;M=882425&#039;&gt;http://www.aspmessageboard.com/forum/showMessage.asp?F=36&amp;P=1&amp;M=882425&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>toString(&amp;quot;d&amp;quot;) worries (janetb)</title>
		<link rel="alternate" type="text/html" href="http://tostring.javasblogs.com/article/50245836.html" />
		<modified>2007-11-17T15:33+00:00
		<content type="html" mode="escaped" xml:base="">Anyone able to tell me what I should be doing? Sql2005 asp net 2.0 -  lbl. Text = Convert. ToDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;start_date&quot;). ToString(&quot;d&quot;)) gives me Input string was not in a change by reversal format.  I&#039;ve tried variations but to no avail.   Thanks.  
(janetb) 10/30/2007 2:27:27 PMAnyone able to tell me what I should be doing? Sql2005 asp net 2.0 -  lbl. Text = alter. ToDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;go away_date&quot;). ToString(&quot;d&quot;)) gives me Input string was not in a correct format.  I&#039;ve tried variations but to no avail.   Thanks.  
(janetb) 10/30/2007 2:39:53 PMThis works but surely I&#039;m beating my continue against the wall and there&#039;s an easier way to dispaly 4:15 pm?  Left(FormatDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;end_go out&quot;). DateFormat. LongTime). InStr(4. FormatDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;end_go out&quot;). DateFormat. LongTime). &quot;:&quot;) - 1) &amp; &quot; &quot; &amp; alter(FormatDateTime(ds. Tables(&quot;event&quot;). Rows(i)(&quot;end_date&quot;). DateFormat. LongTime). 2) 
(nathansasek) 10/30/2007 3:01:54 PMI evaluate there are a few ways that you could do this using the. ToString method.  DateTime dt = Convert. ToDateTime(string); lbl. Text = dt. ToString(&quot;t&quot;);  or  DateTime dt = Convert. ToDateTime(string); lbl. Text = dt. ToString(&quot;hh:mm tt&quot;);  Give these a try.  Nathan &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.aspmessageboard.com/forum/showMessage.asp?F=36&amp;P=1&amp;M=882417&#039;&gt;http://www.aspmessageboard.com/forum/showMessage.asp?F=36&amp;P=1&amp;M=882417&lt;/a&gt;
</content>
	</entry>
</feed>