Advertisement

04.10.2008 at 07:44PM PDT, ID: 23314005
[x]
Attachment Details

how to get today value"

Asked by Jeevanjosh in JDeveloper, Java Programming Language

Hi
 ia have the  table room_booking and the value is stored in the string formate("dd/mm/yyyy e.g 04/07/2008")

i want to retrive the value  wich is equal to today can you pls help in solving the problem

i have the  compareResult1 method



  public static int getCompareResult1(String date) throws ParseException{            
        DateFormat df = new SimpleDateFormat("dd/MM/yyyy", Locale.getDefault());
                     df.setLenient ( false );
        
        Date d1 = df.parse(date);
        Date today = new Date();
               int relation;
        if (d1.equals(today))
             relation = 0;
        else if(d1.before(today))
            relation = -1;
        else
         relation = 1;
        return relation;
        }      
            
}

when i call this in my jsp Start Free Trial
[+][-]04.12.2008 at 01:17PM PDT, ID: 21342351

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]04.14.2008 at 07:10AM PDT, ID: 21350131

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.

 
[+][-]04.14.2008 at 08:15AM PDT, ID: 21350717

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.

 
[+][-]04.15.2008 at 07:08PM PDT, ID: 21364233

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.

 
[+][-]04.16.2008 at 07:54PM PDT, ID: 21373817

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.

 
[+][-]04.17.2008 at 01:17AM PDT, ID: 21375094

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.

 
[+][-]04.17.2008 at 01:18AM PDT, ID: 21375104

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.

 
[+][-]04.20.2008 at 07:12PM PDT, ID: 21398373

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.

 
[+][-]04.21.2008 at 12:46AM PDT, ID: 21399388

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: JDeveloper, Java Programming Language
Sign Up Now!
Solution Provided By: mikeblamires
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.21.2008 at 12:56AM PDT, ID: 21399428

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.

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