use this
public string FromDate
{
get {
if (txtFrmDate.Text.ToString() != "")
{
_fromDate = Convert.ToDateTime(txtFrmDate.Text, _cInfo);
}
else
{
txtFrmDate.Text = DateTime.Now.AddMonths(-3).ToString("dd-MM-yyyy");
_fromDate = Convert.ToDateTime(txtFrmDate.Text, _cInfo);
}
return _fromDate.ToString();
}
set
{
txtFrmDate.Text = value;
}
}
assign the value as below
FromDate = DateTime.Now.ToString();
You need to write capital T and S in tostring.
i thought you know that
now i modified you try it.