This is actually true........
Back in the late seventies into the mid or late eighties, or maybe into the early nineties when it became a problem. Male and female soldiers were getting legally/technically married to collect additional pay benefits and allowances, and other military marital benefits.
How and where these "contract marriages" got started is unknown. The concept is/was the soldiers would agree on which discharge date to use in place of "....till death you do part."
Ironically some of these couples would renew their marriage vows for life, while other couples would seperate at the "expiration" of their respective marriage contract date.