Hi all...need your help form this item....i need to get date from database table and compare it either it today or tomoe..after that need to compare time....

I got table where the format is 'datetime' contains like = 4/11/2010 12:00:00AM'....so i need to get the date only...how to do that?...when get the date ...ithen i need to compare a time.....please help me.....so sorry for my broken english...

Hi,

Here's just an example to show you how you can change the datestring.

Dim current As Date = Date.Now
        TextBox1.Text = current
        TextBox2.Text = current.ToShortDateString
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.