I have a method that populates a grid using a stored procedure. The SP gets it data from a database table but one of the columns is displaying the date as '01/01/1754 00:00:00'. I want this value to be shown as NULL on the grid.
How do I do this?
Here is my code for calling the SP, do I need some sort of IF statement?
public static DataTable getUserList()
{
    SqlConnection con = getConnection();
    SqlCommand cmd = new SqlCommand("PrepaidUserList", con);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.CommandTimeout = Convert.ToInt32(ConfigurationManager.AppSettings["SqlTimeout"]);
    cmd.Parameters.AddWithValue("@ApplicationName", Membership.ApplicationName);
    DataSet ds = new DataSet();
    SqlDataAdapter dad = new SqlDataAdapter(cmd);
    try
    {
        con.Open();
        dad.Fill(ds);
    }
    finally
    {
        con.Close();
    }
    return ds.Tables[0];
}
Thanks
 
     
    