Compare month/year with date

Compare month/year with date

  

Hi,

From Month, Year To Month, Year (combo box)

User is allow to select month (Jan,Feb,Mar) and Year (2017,2018). I have set the values to Jan, Feb and Id to 1,2. 

Next, my data is date. How do i compare the date range?

Hi Jace,

I'm assuming that you have one date in two variables (month1 and year1), and the other date in other two variables (month2 and year2).

If that is the case, you can compare them by doing something like

NewDate(year1, month1, 1) > NewDate(year2, month2, 1)

If that is not the case, you have to give us more context or a sample oml.

Cheers,

José


Hi Jace,

This topic seems to be a duplicate of this one:

https://www.outsystems.com/forums/discussion/28748/search-by-month-year/

If not, please state exactly what you want in this topic.

Otherwise, please don't duplicate your questions. That makes it harder for us to help you.

Cheers,

José