This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Solved: logic tag inside a logic tag : S1

 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ..

I'm writing something like this:



The logic is, I'm checking the today's date between two dates, i.e between startdate and endDate properties.

But this two things, not working together. If used single logic tag, whether greater than or less than, then it works !!

What might be the problem ?

Thanks.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sorry, I found the answer.

The problem is , I'm considering them a date object, but they are plain string in the format, "dd/MM/yyyy" (Using DateFormat class). So when I swap the logic tags, by changing lessthan to greaterthan and vise a versa.. It works !!




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic