NEW YORK (CBSNewYork) – A new law in New York state will provide relief from jury duty for breastfeeding moms.

The newly signed measure allows nursing mothers to delay jury service for up to two years.

READ MORE: 15-Year-Old Fatally Stabbed In Brooklyn, Police Questioning Person Of Interest

Anyone who wants to postpone must submit a note from a doctor.

READ MORE: Ahead Of Father's Day, Mets Host Families Who Lost Loved Ones On 9/11: 'It Opens Up The Wounds'

According to the National Conference of State Legislatures, 17 states and Puerto Rico already have similar laws in place.

MORE NEWS: Claremont Residents Say Overflowing Garbage Is Leading To Major Rat Problem In Community

The law takes effect immediately.