From your post, I assume that you are absolutely 100% sure that these are the only two possible formats. If this is not the case, then comment / edit the post.
Testing, if the date contains a letter, should consist in concluding a transaction in a simple way.
/[az]/i.test("May 16, 2013") // true, the date is written out /[az]/i.test(1370039735000) // false, it unix epoch format
Vache source share