Stored Procedure in Query tag

What is the right syntax to pass a parameter (tag) to a stored procedure?
I am getting an error when I am passing a tag as a parameter.
The tag I am passing as parameter is a datetime.
If I pass a static time, it works but a tag gives an error
Script:

exec Stored Procedure  @StartTime = {[~]Projects/PlantLogistics/ShiftTimings/Shift1} , @EndTime = {[~]Projects/PlantLogistics/ShiftTimings/CurrentTime}

Error:
image

Try putting the tag paths in quotes