By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,642 Members | 2,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,642 IT Pros & Developers. It's quick & easy.

Date Format in a datalist - VB

P: 5
I am new to asp.net and am trying to format dates that are pulled from an access database into an asp:data list.

At the moment it brings over the date and time and I only want to show the date.
Nov 26 '07 #1
Share this Question
Share on Google+
1 Reply


QVeen72
Expert 100+
P: 1,445
Hi,

Change the Format of the Date in Select Query itself..

Expand|Select|Wrap|Line Numbers
  1. "Select Field1, Format(DateField,'dd-mm-yyyy') As MyDate From MyTable"
  2.  
Use the above qury and populate the dataset

Regards
Veena
Nov 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.