Thread: Date in vb.net
View Single Post
Old 12-14-2007, 08:26 AM   #2 (permalink)
andrew247
Google Guru
 
andrew247's Avatar
 
Join Date: Oct 2005
Location: c:\GoogleCommunity
Posts: 3,386
Thanks: 3
Thanked 13 Times in 13 Posts
andrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of light
Quote:
Originally Posted by Thirukumar View Post
Hi,
Help me to solve this problem
I have declared a variable as Date
=>dim dt as Date
=>dt=Now
=>Textbox1.Text=dt
Here i will get the Date value as Current Date with Time
=>dt=nothing
here i have dispose the variable.
=>TextBox2.Text=dt
but still Time is Remain.. 12:00:00 AM
00:00:00 is the default format of a variable that you declare as "date", so if it hasn't been set, or you empty it, this is what you'll get.
andrew247 is offline   Reply With Quote