da = New MySqlDataAdapter("SELECT * FROM time_log WHERE SUBSTRING(time_date,1,5)!='" + DateTime.Now.ToString("dd/MM") + "' order by time_date,data_id,time,phase", Conn)
da.Fill(dt)
DataGridView1.DataSource = dt
objExport.ExportDetails(dt, RKLib.ExportData.Export.ExportFormat.Excel, expath_timelog + "\" + DateTime.Now.ToString("dd-MM-yyyy") + ".xls")
Tag : MySQL, Excel (Excel.Application), Win (Windows App)