Re: Displaying dates in dd/mm/yy format
From: George P. (antispam_at_hotmail.com)
Date: 11/30/04
- Next message: Sahil Malik: "Re: Read-only transaction in Oracle"
- Previous message: George P.: "How can I format date in databound combobox in windows app?"
- In reply to: Anonymouse: "Displaying dates in dd/mm/yy format"
- Next in thread: Anonymouse: "Re: Displaying dates in dd/mm/yy format"
- Reply: Anonymouse: "Re: Displaying dates in dd/mm/yy format"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Nov 2004 22:26:06 +0200
the short date also contains time information.
You can however format the string to shortformat.
if you want to input dates why don't you use the datetimepicker and format
it to shortdateformat.
"Anonymouse" <Anonymouse@discussions.microsoft.com> wrote in message
news:E21DCC9C-632C-4FC9-B2EB-71D418D16183@microsoft.com...
> I have two Date/Time fields in my Access 2003 database. The VB.NET app I'm
> developing (and making some real progress with) uses TextBoxes to input
these
> as part of a record in a DataSet. Problem: Access always stores years as 4
> digits, and it automatically tags a time onto the field, so when the user
> enters:
>
> 30/11/04
>
> I end up with:
>
> 30/11/2004 00:00:00
>
> when I view the record after it's created; the DataSet is populated using
> the database schema. Since the TextBox is set to display only 8
characters,
> this is annoying at best. The only way I can think of around this is to
store
> the date as a string and write a validation handler for each TextBox that
> inputs dates.
>
> But is there a better way? Can I somehow force Access to store the short
> date and nothing else?
>
- Next message: Sahil Malik: "Re: Read-only transaction in Oracle"
- Previous message: George P.: "How can I format date in databound combobox in windows app?"
- In reply to: Anonymouse: "Displaying dates in dd/mm/yy format"
- Next in thread: Anonymouse: "Re: Displaying dates in dd/mm/yy format"
- Reply: Anonymouse: "Re: Displaying dates in dd/mm/yy format"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|