I was able to resolve my issue by using the following try...catch block. I attempt to parse the string as a long and if that fails then parse the string as a date.
Date localDate = new Date();
try
{
localDate.setTime(Long.parseLong(paramString));
}
catch (NumberFormatException localNumberFormatException)
{
localDate.setTime(Date.parse(paramString));
}