Hi,
I would like to insert current date (in dd/mm/yyyy)format in the SQL Server.
Please teach me how to write the code.
sql = "INSERT INTO tbattendance([User],Email,TopicID,DateSubmitted,Dept) values('?','?','?','?','?')"
sql = Replace(sql, "?", Name, 1, 1)
sql = Replace(sql, "?", Email, 1, 1)
sql = Replace(sql, "?", TopicID, 1, 1)
sql = Replace(sql, "?", Current_Timestamp , 1, 1)
sql = Replace(sql, "?", Dept, 1, 1)
The Current_TimeStamp return a different format.
I would like to insert current date (in dd/mm/yyyy)format in the SQL Server.
Please teach me how to write the code.
sql = "INSERT INTO tbattendance([User],Email,TopicID,DateSubmitted,Dept) values('?','?','?','?','?')"
sql = Replace(sql, "?", Name, 1, 1)
sql = Replace(sql, "?", Email, 1, 1)
sql = Replace(sql, "?", TopicID, 1, 1)
sql = Replace(sql, "?", Current_Timestamp , 1, 1)
sql = Replace(sql, "?", Dept, 1, 1)
The Current_TimeStamp return a different format.