You need to use some library, or code things yourself, because the built-in date parsing and writing routines of JavaScript are very limited. The formats used there are basically system-dependent.
I’m biased (as the author of “Going Global with JavaScript and Globalize.js”), but I still recommend using Globalize.js, even in cases where you are really not globalizing but use English notations only. After all, using English notations for dates is a form of localization.
Example:
<script src=globalize.js></script>
<script>
var birthDateString = "09Feb1952"; // just a test case
var birthDate =
Globalize.parseDate(birthDateString, 'ddMMMyyyy');
if(!birthDate) {
alert('Error in birth date!'); // replace by suitable error handling
}
else {
var unixTimeStamp = Math.round(birthDate.getTime()/1000);
document.write(unixTimeStamp + "<br>");
document.write(Globalize.format(birthDate, 'dddd d MMM yyyy'));
}
</script>
This would end up with the result “Saturday 9 Feb 1952”, which is not quite of the requested form, so if you really want that form, you would need some added logic that adds the suffix “th”, “st”, “nd”, or “rd”.
Regarding UNIX time stamp vs. JavaScript Date objects, see answers to question How do you get a timestamp in JavaScript?