![]() |
|
|
#1 |
|
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 |
|
|
|
#2 |
|
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 |
|
|
|
#3 |
|
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 > > > |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|