
09-20-03, 02:05 AM
|
|
Coding Addict
|
|
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by Kaikki
Hi there
This is probably a very stupid question from an ASP beginner but I hope that somebody will be kind enough to help me out here.
I am sending a Date that the user enters from a form on my asp.page, to the Access 2000 Database.
I have set the field in the Access database table which stores the Date to, DATA TYPE: Date/time and the FORMAT: Medium Date.
In the database the date is then displayed as eg. 14-Aug-03.
However when I display the date on my DETAIL Page it looks like this 14-08-2003. I want it to display as 14-08-03.
To display the date on my DETAIL page I use the following code:
<td width="9%" align="center" bgcolor="#FFFFFF" height="18"><p style="margin-top: 0; margin-bottom: 0"><font face="Verdana, Arial, Helvetica, sans-serif" style="font-size: 11px"><%=(rsDetail.Fields.Item("AD_DATE1").Value)% ></a></font></p></td>
How can I control the way the date is displayed? Do I have to change some settings in the Access Database that holds the Date Field, or do I require some kind of script in the code that is calling the script.
Thankyou in advance.
Regards
Kaikki
|
This should answer a few questions.
http://www.learnasp.com/learn/datetime.asp
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
|