I work in the Technical Publications department for a major airline.
When we generate new and/or modified manuals, based on manufacturer
guidelines, we need to have them available to everyone who uses the
manual so that they all go into effect the same time, normally at
midnight on the effective date.  By comparing both dates, I can always
insure a link to the correct manual will be made.

On Apr 21, 4:10 am, Cerebrus <[email protected]> wrote:
> Try something like:
>
> <%# Eval("EffDate", "{0:d}")%>
>
> I don't quite get what you are trying to accomplish by the conditional
> IIf statement.
>
> On Apr 20, 10:37 pm, Mac222 <[email protected]>
> wrote:
>
>
>
> > I am fairly new to ASP.NET, but have been using classic ASP for quick
> > awhile.  I am in the process of building a new website for our company
> > using ASP.NET.  I am using data extracted from a Microsoft Access
> > database and have been successful in retrieving the data in question.
> > However, I ran across one small problem.  My current code reads:
>
> > <%#IIf(Eval("EffDate") <= Container.DataItem("NewEffDate"), _
> >           Container.DataItem("NewEffDate"), Container.DataItem
> > ("EffDate"))%>
>
> > The only problem is the 'NewEffDate' and 'EffDate' are both displaying
> > the date and time (9/22/2008 12:00:00 AM).  The entry in the database
> > (ShortDate format) only shows the date.
>
> > My problem: How do I suppress the time?  I've tried string.format
> > ("NewEffDate", {0:d}"), but I get an 'Overload resolution" failed
> > message.
>
> > Thanks in advance for any assistance I can get.- Hide quoted text -
>
> - Show quoted text -

Reply via email to