To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Display Modes
Old May 13th, 2007, 03:19 AM   #1
helgeduelbeck
New Member
 
Join Date: May 07
Posts: 3
helgeduelbeck is an unknown quantity at this point (<10)
Date format - Datagrid - SQL

Guys,

I'm newbie on .NET

Does anyone know how to fix my date format on my datagrid ?
My data source at my .MDB is already at the date format that what I need.

Here's the snippet :

<%@ Page Language="VB" MasterPageFile="~/default.master" Title="Data Grid - SQL - MDB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr >
<td align="center" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr >
<td align="center" valign="top">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
DataSourceID="AccessDataSource1" PageSize="20" CssClass="tb01">
<FooterStyle CssClass="tb01-ft" />
<PagerStyle CssClass="tb01-ft" ForeColor="White" />
<HeaderStyle CssClass="tb01-hd" Font-Size="Small" ForeColor="White" Wrap="True" />
</asp:GridView>
</td>
<td align="center" valign="bottom">
&nbsp;
<asp:Button ID="Button1" runat="server" Text="Close" PostBackUrl="javascript:self.close()" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/general.mdb"
SelectCommand="SELECT TBL_PROJECT.NAMEPROJECT AS Name, TBL_PROJECT.STARTPROJECT AS Start, TBL_PROJECT.ENDPROJECT AS Finish, TBL_PROJECT.JOBNO AS [Job No], TBL_PROJECT.CLIENT AS Client, TBL_PROJECT.BUILDING AS Building, TBL_PROJECT.CODEPROJECT AS Code
FROM TBL_PROJECT;

">
</asp:AccessDataSource>
</asp:Content>

-----
It will return : mm/dd/yyyy hh:mm:ss pm/am.
At my .MDB data, is already dd-mm-yy. (It is easy for MsAccess to do this)
I use me master page, so it may be influenced with that file too ?

Ok folks, that's it. please help me.
helgeduelbeck is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:03 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.