I want to have a <div> control on my page that only displays up to a certain date. I tried this:
protected void Page_Load(object sender, EventArgs e)
if (System.DateTime.Now > "08-15-2011")
earningscall.Visible = false;
But, that gives me this error:
CS0019: Operator '>' cannot be applied to operands of type 'System.DateTime' and 'string'
How can I use the current date to determine whether or not to display a control?