A forward contract is a contract that has a defined date of expiry. The contract can vary between different instances, making it a non-standardized entity that can be customised according to the asset being traded, expiry date and amount being traded.
Forward contracts have an agreed expiry on them, but that does not mean that they have to be kept open for the duration. Most forward contracts can be closed early, if you want to limit losses or take profits.