B
bpsdgnews
Hi,
I use this code to ad a record to an SQL server table:
Private Function NieuweTraining(ByVal Tijdstip As Date) As Integer
Dim Training = New tblTrainingen
With Training
.Persoon = frmMain.cboLopers.SelectedValue
.Tijdstip = Tijdstip
End With
dcTraining.tblTrainingens.InsertOnSubmit(Training)
dcTraining.SubmitChanges()
Return Training.Id
End Function
tblTrainingen is a Linq-to-SQL object.
Training.Tijdstip is a datetime column in an SQLserver database
If I put a breakpoint in, Training.Tijdstip will show up with the
timepart in as well (Although it is in AM/PM format, which is not a
usual fromat here in Europe). But if I look in the database later, all
the records will show the date with time set at 0:00:00.
The variable Tijdstip is coming from a third party dll. Is this a
problem in localization? Or is it something else?
I use this code to ad a record to an SQL server table:
Private Function NieuweTraining(ByVal Tijdstip As Date) As Integer
Dim Training = New tblTrainingen
With Training
.Persoon = frmMain.cboLopers.SelectedValue
.Tijdstip = Tijdstip
End With
dcTraining.tblTrainingens.InsertOnSubmit(Training)
dcTraining.SubmitChanges()
Return Training.Id
End Function
tblTrainingen is a Linq-to-SQL object.
Training.Tijdstip is a datetime column in an SQLserver database
If I put a breakpoint in, Training.Tijdstip will show up with the
timepart in as well (Although it is in AM/PM format, which is not a
usual fromat here in Europe). But if I look in the database later, all
the records will show the date with time set at 0:00:00.
The variable Tijdstip is coming from a third party dll. Is this a
problem in localization? Or is it something else?