datetime issues on pc that no have visual studio

  • Thread starter Thread starter alianware jack
  • Start date Start date
A

alianware jack

Guest
if (Convert.ToString(MLC.TaxAgentActive.ToString()) == "1/1/0001 12:00:00 AM "|| Convert.ToString(MLC.TaxAgentActive.ToString()) == "0001/01/01 00:00:00.000")
{
textbox1.Text = string.Empty;
}
else
{
textbox1.Text=DateTime.Parse(MLC.TaxAgentActive.ToString("dd/MM/yyyy"));
}
the code that i try using (convert.ToString) and (DateTime.Parse().ToString()) to find the result for fill in to textbox but on my pc that have visual studio it run no problem, but on other pc that no have visual studio it run on difference result for me. the data i take from database for do checking. the pc that have visual studio, textbox will show empty but on other pc that no have visual studio it show difference result.

Continue reading...
 
Back
Top