Advertisement

02.16.2007 at 06:29AM PST, ID: 22394050
[x]
Attachment Details

date comparsion problem

Asked by rutledgj in PL / SQL, Microsoft Visual Basic.Net

Tags: date, sql, comparsion

I have the following partial sql statement that I'm trying to execute from vb.net code:

Dim currdate as string = date.now.tostring('MM/dd/yyyy")

select prm.datefrom
from prmmain prm
where to_char(prm.datefrom,'MM/DD/YYYY')  >= '" + currDate + "' "

prm.datefrom is a datetime column.
This doesn't work because now I'm comparing strings instead of dates. Is there a way for me to convert these back to dates or somehow keep them as dates to begin with?

Start Free Trial
[+][-]02.16.2007 at 06:47AM PST, ID: 18548726

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PL / SQL, Microsoft Visual Basic.Net
Tags: date, sql, comparsion
Sign Up Now!
Solution Provided By: razo
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.16.2007 at 06:53AM PST, ID: 18548778

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.16.2007 at 07:00AM PST, ID: 18548853

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.16.2007 at 07:10AM PST, ID: 18548946

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.16.2007 at 07:25AM PST, ID: 18549082

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.16.2007 at 07:37AM PST, ID: 18549189

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.16.2007 at 07:39AM PST, ID: 18549218

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32