How long is driving restriction after a heart attack?

The actual date from which the restriction starts is important – date of heart attack, or date of discharge from hospital.