In converting an old Windows app to a browser app, the user wanted to be able to enter dates without the slashes. Here's a simple jscript:
I simply add the call to the onBlur event and we're off to the races.
I've chosen 2020 as my cutoff year so anything 033120 will be 03/31/1920 while 033119 will be 03/31/2019.
Hope you enjoy.