evios
Member
- Joined
- Jun 3, 2008
- Messages
- 11
- Programming Experience
- Beginner
Lets say if the user choose an interval from 2008/06/09 12:00:00 till 2008/06/10 12:00:00, and there will be data within that interval that i need to further categorize, and i use the coding as below:
those with 12:00:00 will fall within hour=12:00:00. However there will be 2 dates merge together which i dont want it in that way....how can i solve it? Thanks.
P/S: I juz manage to convert the data in the database from varchar to:
VB.NET:
If vDateTime.Hour >= 0 And vDateTime.Hour < 24 Then
Dim hour As Integer = vDateTime.Hour
If hour = 0 Then
hour = 24
End If
P/S: I juz manage to convert the data in the database from varchar to:
VB.NET:
vDateTime = Convert.ToDateTime(storedate(1))