block future dates in A/P for accounting period

SOLVED

Is there a way to block future dates being used in A/P for accounting period? Or limit it at least to no more than a month ahead?