insert into Accounts (AccountName,AccountLevelCode,CharacterCreateLimit,CharacterMaxCount,RegisterDate,PublisherCode,Passphrase) values ('"&UserName&"','0','4','7','2014-01-20 12:12:12','4','"&md5pass&"') ")
The error is in this query.
One of these fields types is incorrect. Check the date value and column type.