Adapt DateTime values for SQL-Server or Access formats

The following functions converts a datatime value (independant of the dateformat) to a string that is readable by the SQL Server.