Changed date insertion logic. (String)