Re: timestamp problem
From: Carlor (anonymous_at_discussions.microsoft.com)
Date: 06/18/04
- Next message: Lynn Trapp: "Re: Newbie: Multiple records to one customer"
- Previous message: Patti: "RE: table structure"
- In reply to: Rick B: "Re: timestamp problem"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Jun 2004 08:59:10 -0700
Hi Rick,
In my table, the timestamp field is a Date/Time datatype.
In my windows form code I basically have:
dim timestamp as Date
timestamp = Now
Dim dr As DataRow = Ds1.TransHistory.NewRow
dr.item("hist_timestamp") = timestamp
Ds1.TransHistory.Rows.Add(dr)
daTransHistory.Update(Ds1)
So, as far as I can tell, I'm passing in the full
date/time object but it's not being stored accordingly.
I hope this helps explain what I'm doing.
Thanks,
Carlo.
>-----Original Message-----
>It sounds to me like you are passing a date only to a
date/time field. if
>you only enter the date, I believe the time will default
to 12:00.
>
>Rick B
>
>"carlor" <anonymous@discussions.microsoft.com> wrote in
message
>news:1e87801c45540$78f29c10$a001280a@phx.gbl...
>Hi there,
>
>I'm having trouble with dates/times in my table. I have a
>vb.net Date that I'm trying to add to the table. The Date
>contains the date and time (timestamp) but when it gets
>entered via my windows form, only the date shows up and
>the time is set to 12:00. Does anyone know how to fix
>this problem?
>
>Thanks,
>
>Carlo.
>
>
>.
>
- Next message: Lynn Trapp: "Re: Newbie: Multiple records to one customer"
- Previous message: Patti: "RE: table structure"
- In reply to: Rick B: "Re: timestamp problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|