TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Expression

Notices

Reply
 
Thread Tools Display Modes
Old 18-05-2008, 10:51 AM   #1
JCH
Guest
 
Posts: n/a
GridView Date Format

This has got to be so simple I hate to ask. But then is it so frustrating
that I am willing to let my ignorance show.

I have a .aspx page with an Access DataSource control and a GridView
control. It returns the proper dataset and works perferctly EXCEPT for the
formatting of the Dates. The GridView displays dates as Long Dates (5/17/2008
12:00:00 AM) even though the Access Table has Short Dates (5/17/2008). The
GridView has many dates so the extraneous time stamp is very distracting.

I cannot find the formatting control that will make the GridView display
Short Dates. Can someone point me in the right direction?
--
Cordially,
JCH
  Reply With Quote
Old 18-05-2008, 08:52 PM   #2
Kathleen Anderson
Guest
 
Posts: n/a
Re: GridView Date Format

Formatting Results to Display Just Date, Not Date&Time

http://www.homepagedoctor.com/Expres...orDateOnly.htm


--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
Expression Web Resources: http://www.spiderwebwoman.com/xweb/
FrontPage Resources: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others


"JCH" <JCH@discussions.microsoft.com> wrote in message
news:234E4385-9B3A-4D83-BD78-3FFA8917AA3A@microsoft.com...
> This has got to be so simple I hate to ask. But then is it so frustrating
> that I am willing to let my ignorance show.
>
> I have a .aspx page with an Access DataSource control and a GridView
> control. It returns the proper dataset and works perferctly EXCEPT for the
> formatting of the Dates. The GridView displays dates as Long Dates
> (5/17/2008
> 12:00:00 AM) even though the Access Table has Short Dates (5/17/2008). The
> GridView has many dates so the extraneous time stamp is very distracting.
>
> I cannot find the formatting control that will make the GridView display
> Short Dates. Can someone point me in the right direction?
> --
> Cordially,
> JCH



  Reply With Quote
Old 18-05-2008, 10:53 PM   #3
JCH
Guest
 
Posts: n/a
Re: GridView Date Format

The link to the HomePage doctor was exactly what I needed - concise and
explicit.
Thank you.
--
Cordially,
JCH
www.jcharper.net


"Kathleen Anderson" wrote:

> Formatting Results to Display Just Date, Not Date&Time
>
> http://www.homepagedoctor.com/Expres...orDateOnly.htm
>
>
> --
>
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> Expression Web Resources: http://www.spiderwebwoman.com/xweb/
> FrontPage Resources: http://www.spiderwebwoman.com/resources/
> Please reply to the newsgroup for the benefit of others
>
>
> "JCH" <JCH@discussions.microsoft.com> wrote in message
> news:234E4385-9B3A-4D83-BD78-3FFA8917AA3A@microsoft.com...
> > This has got to be so simple I hate to ask. But then is it so frustrating
> > that I am willing to let my ignorance show.
> >
> > I have a .aspx page with an Access DataSource control and a GridView
> > control. It returns the proper dataset and works perferctly EXCEPT for the
> > formatting of the Dates. The GridView displays dates as Long Dates
> > (5/17/2008
> > 12:00:00 AM) even though the Access Table has Short Dates (5/17/2008). The
> > GridView has many dates so the extraneous time stamp is very distracting.
> >
> > I cannot find the formatting control that will make the GridView display
> > Short Dates. Can someone point me in the right direction?
> > --
> > Cordially,
> > JCH

>
>
>

  Reply With Quote
Reply

Thread Tools
Display Modes


Google
 


All times are GMT +5.5. The time now is 11:52 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional