I'm new to Outsystems, I would like to ask how to show the succeeding months in a combo box.

Let say today is October 2019, the combo box will only show November 2019 to December 2019. If today is July 2019, then the combo box will only show August 2019 to December 2019.

Thanks in advance

HI, Miguel.

You can use the DatePicker that outsystems provides to us, you can set the MinDate and MaxDate too.

Hi Miguel,

There's no out-of-the-box solution, unless you want to use an actual date picker like Luiz posted. If you want to populate a Combo Box, you'll need a List. To build a List with the content you want, initialize a date with the current date (using the built-in CurrDate() Function), use the built-in FormatDateTime() Function to format the date (using e.g. "MMMM yyyy" to get the full month name + year) and add the result to your List. Next increase the date with a month by using the built-in AddMonths() Function, and check whether the Year() of the resulting date is still equal to the Year() of the current date. If not, you're done, if so, you repeat.