how to fetch last one month transactions in x++ ?

any one reply me

what transactions you are talking about? Do you have a date on the transactions?

please elaborate.

CustTrans custTrans;

date todate = today();

date fromdate = prevMth(today());

while select custTrans where (custTrans.TransDate >= fromdate && custTrans.TransDate <= todate) && custTrans.AccountNum ==‘DE-001’

{

info(strFmt("%1",custTrans.AmountMST));

}

Hope this may helps you!!!