Fazil Azeez

Fazil Azeez

  • NA
  • 34
  • 650

Date from Sqlserver database to Datetime

Sep 13 2018 1:13 AM
Hai, I am create a windows form. I stored expiry date in Sql server database name "test" and the table name "exp" have id(primary key) and date attributes. And my program is a button clicks then the usercontrole show. If date expired when show a message box "the app expired" Button1_clicked Datetime dt1= datetime.now; Datetime dt2= expirydate from database If(dt1>dt2) { Messagebox.show("App expired"); } Else { Usercontrole.bringToFront(); } How can get the date from the the "Sqlserver database" to "Datetime dt2". Database name = test Table name= exp

Answers (2)