Jagjit Saini

Jagjit Saini

  • NA
  • 166
  • 0

Time

Sep 5 2011 2:48 AM
Hi

MySqlDataAdapter da0 = new MySqlDataAdapter("select curtime()", ConnectionStr);
            DataTable dt0 = new DataTable();
            da0.Fill(dt);

            _dt = (DateTime)dt.Rows[0][0];
            label4.Text = DateTime.Now.ToString("HH:mm tt");

it is displayimg 00:00 AM

Thanks

Answers (1)