I am trying to populate textbox on winsows application from database.
The stored procedure pulls data using datareader. Data looks fine when I execute stored procedure on SQL server management studio.
But when I am trying to populate from the application its not getting same result.
I apprecaite all help.
Thanks
txtovrts.Text = dr["lst_mod_dt"].ToString();
// returns date only
txtovrts.Text = Convert.ToDateTime(ds["lst_mod_dt"].ToString("MM/dd/yyyy hh:mm:ss");
//returns correct date but time stamp is always returned as 12:00:00(which is incorrect)