I have a DateTime value pulled from a field in an MSSQL database I want to split this and remove all delimiters so that I have just a string of the date.
So: 2012-11-06 14:36:20.810
Becomes: 20121106143620810
Ideally, I don’t want the milliseconds either……
So: 2012-11-06 14:36:20.810
Becomes: 20121106143620
I am using Classic ASP for this application.
Any ideas?
Quick and dirty:
Of course you can optimize it in various ways, but this will get the job done