I figured I’d post this because I’ve been wrestling with it for hours now.

<asp:HyperLink ID=”HyperLink1″ runat=”server” NavigateUrl='<%# “makeappointment.aspx?SiteId=” + DataBinder.Eval(Container.DataItem,”accountid”).tostring + “&Date=” + DataBinder.Eval(Container.DataItem,”drivedate”,”{0:d}”).tostring%>’>Make Appointment</asp:HyperLink>

This gives you a hyperlink that looks like:


Notice on the date item I added the ,”{0:d}”
This formats the date to a short date with no time.

Sometimes the silliest things can take forever to figure out.
Maybe it had something to do with my kids running around my office. Right after they left I got this working!
Note: I don’t claim to be a uber programmer. If you are one, feel free to tell me my code is crap! I just shoot for what works for my needs.  Also, WordPress does some funky stuff when you post code, so some of the quotes might get messed up when you copy and paste.  I need to figure out how to post programming code without it getting all messed up.