Hi guys,
i want to in the LedgerJournalTrans list of posting Date get in only "January"
below my code
LedgerJournalTrans journalTrans;
date currentDate = DateTimeUtil::date(DateTimeUtil::utcNow());
SysDate listOfYearJanuary = prevYr(prevYr(dateStartYr(currentDate)));
while select firstOnly10 journalTrans
where journalTrans.TransDate == listOfYearJanuary
{
info(strFmt("%1", journalTrans.TransDate));
}
in this above code i can get only specific year January but i want to output below and how to get list of January date in x ?
result ;
1/1/2018
1/3/2018
1/4/2018
1/1/2019
1/3/2019
1/2/2020