473,473 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Date time in Textbox problem

Bob
Hello:

I have an untyped dataset that uses an Access 2002 database.

For every record, it shows mm/dd/yyyy 12:00:00 AM in the textbox.

All I want to show is mm/dd/yyyy

I don't even know where it's getting the 12:00:00 AM from. I checked the raw
data in the table and only a short date is in each field but my app keeps
appending that 12:00:00 AM to every record.

I read many posts and I did change my type to Date instead of DateTime in
the parameter collection and Schema but to no avail.

TIA

Bob
Nov 21 '05 #1
1 1218
i think that the dataset is complating the time, and always complete it with
12:00:00 AM by default...

try to make an format(field,"mm-dd-yyyy") this way you force it to put it
so...

"Bob" wrote:
Hello:

I have an untyped dataset that uses an Access 2002 database.

For every record, it shows mm/dd/yyyy 12:00:00 AM in the textbox.

All I want to show is mm/dd/yyyy

I don't even know where it's getting the 12:00:00 AM from. I checked the raw
data in the table and only a short date is in each field but my app keeps
appending that 12:00:00 AM to every record.

I read many posts and I did change my type to Date instead of DateTime in
the parameter collection and Schema but to no avail.

TIA

Bob

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: TN Bella | last post by:
Hello, I was looking through the older posts for a solution to this problem, but I am still confused on how to fix my problem. There are two dates on my form, one (txtInvDate) is entered by the...
7
by: James P. | last post by:
Hello there, In my asp.net page using VB, I have a date text field in mm/dd/yyyy format. When a date is entered, I'd like to validate it to make sure the date is greater than or equal to the...
1
by: Paul Evans | last post by:
Hi, I have created a datagrid which works just fine. One of the columns retrieves the date which particular row was populated. However, the format which the date is returned is: 19.12.2004...
1
by: billy | last post by:
Ok, here's the situation... I have a user control that contains two textboxes (one for a from date/time and one for a to date/time) and two image buttons. The user control itself is supposed to...
2
by: Thomas Beyerlein | last post by:
I am binding dates to a textbox, the date is stored in SQL in a datetime field. When it gets bound it turns it into a long date (Sunday, Dec. 25 2005), in SQL when viewing the table it views as a...
7
by: Jerome | last post by:
Hallo, I know a lot has already been told about date/time fields in a database but still confuses me, specif when dealing with SQLserver(Express). It seems that sqlserver only accepts the date in...
2
by: Derek Vincent | last post by:
What must I do to overcome a problem with my dates becoming formatted as "2/22/2525 12:00:00 AM" in the datagrid? I want to handle all dates as short string of format "2/22/2525." Otherwise when I...
3
by: Jim in Arizona | last post by:
I have a gridview that's being populated from an access db query. The problem I'm having is that the date/time fields in access that are populating the gridview are showing both date and time, when...
4
by: Michel Posseth [MCP] | last post by:
I have a problem with the date time picker validate event wich i believe is a bug How to reproduce : throw on a form a date time picker control and a textbox control select the validating...
17
by: Brian S. | last post by:
Hi, why does this function return the date and time.. I only want the date to return.. no time on it :( Public Shared Function LastWorkDayOfTheMonth(ByVal dtmdate As Date) As Date Dim x As...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.