NEW YORK (CBSNewYork) – A new study says taking blood pressure medication at bedtime could prevent heart attacks.

Patients with high blood pressure are often advised by doctors to take their medicine in the morning.

READ MORE: 'Your Life Does Not End Because You Have A Diagnosis': Shantel Smith Opens Up About Her Battle With Multiple Sclerosis Before 'Survivor'

But a new study shows a significantly lower risk for heart disease and stroke if blood pressure pills are taken at night.

READ MORE: 19-Year-Old Hurt In Brooklyn Shooting; No Arrests Yet, NYPD Says

Researchers examined data on 19,000 patients in Spain.

MORE NEWS: NYC 'Strongly Recommends' Masks In Public Indoor Spaces, As Omicron Variant Reaches North America

The study appears in the European Heart Journal.