on 05-26-2009 6:12 AM
Hi,
In this line of code
oUserTable.UserFields.Fields.Item("U_SBTime").Value = oDBs_Detail.GetValue("U_SBTime", i)
i am assigning value to user table field of datetime,but it is taking always 12:00 why?
here ia m updating table so, 0:00 is storing in tables
Time type in B1 only takes the hour and minits only with format: HH:MM
Date type in B1 only takes the year, month date 2009-05-26 00:00:00
That is why always 0.00 stored in DB.
You can get the exact current time the following query. like: 11:45
SELECT Left(Convert(varchar,GetDate(),8),5)
Kind Regards, Yatsea
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.