The U.S is warning beaches in two states about "dangerous" rip currents on Tuesday, July 28.

The National Weather Service issued a dangerous rip currents warning for beaches in both Florida and New York on Tuesday.

"Rip currents can sweep even the best swimmers away from shore into deeper water," the warning states.

"Swim near a lifeguard. If caught in a rip current, relax and float. Don't swim against the current. If able, swim in a direction following the shoreline. If unable to escape, face the shore and call or wave for help."

In Florida, Gulf County Beaches have been put on alert. Meanwhile, in New York, beaches in Kings (Brooklyn), Southwest Suffolk, Southeast Suffolk, Southern Queens and Southern Nassau Counties have been put on alert.

As a reminder, here's what to do when caught in a rip current:

If you see someone caught in a rip current:

Stay safe, all.