In this July 10, 2017 file photo, Cameron Maynard stands at attention by the monument to Confederate soldiers at the South Carolina Statehouse in Columbia, S.C. Credit: Jeffrey Collins / AP

COLUMBIA, S.C. — A bill that would allow state employees to take the Juneteenth holiday or any other day instead of Confederate Memorial Day unanimously passed the South Carolina Senate on Tuesday.

The bill began as a proposal to add the Juneteenth celebration on June 19 as a new state holiday. But instead of adding a 14th holiday, the bill would create a holiday that state employees could take any time they want.

To not spend any additional money, the bill would remove Confederate Memorial Day on May 10 from the holiday list. If employees want that day off, or Juneteenth, they would have to use the floating holiday.

The bill now heads to the South Carolina House.

Juneteenth commemorates June 19, 1865, when Union soldiers told enslaved Black people in Galveston, Texas, that they were free. It was two months after the Confederacy surrendered and more than two years after the signing of the Emancipation Proclamation.

The  federal government  made it an official holiday last year.

In recent years, the Confederate Memorial Day celebration at the Statehouse has attracted a few dozen people who raise a Confederate flag on a small pole near a memorial to rebel soldiers on capitol grounds.

South Carolina flew the Confederate flag on the Statehouse dome for decades before moving it to the capitol grounds in 2000. Fifteen years later, lawmakers removed the flag entirely less than a month after an avowed racist who posed with the banner shot and killed nine Black people at an African American church in Charleston.