Members of the Public and Commercial Services (PCS) union, including Border Force officials, will walk out on 15 March, with the impact of the action set to run into the early hours of 16 March.
The strike will impact international arrivals at all UK air and maritime ports, the Home Office warned, as well as those travelling to the UK from UK border controls in Calais, Dunkirk and Coquelles in northern France.
In a statement, the Home Office said: "If you are travelling into the UK during the proposed industrial action, be prepared for longer wait times at UK border control.