Now have this a form

To enter the product serial number, or select a date and then click the query, need to pull out a list of corresponding data

Exterior-interior data2 as product serial number, createtime to date, the format for the Select the CONVERT (varchar (100), GETDATE (), 21) : 2021-03-12 16:13:11. 157
Database has been configured, can you tell me how to write, thank you very much