Function that convert string to timestamp for mssql, oracle and sybase - http://connectsql.blogspot.com/2011/04/sql-server-basics-todate-function-in.html