Hi All

I need to be able to chenge this
VB Code:
  1. If TimeValue(Time) <= TimeValue(TimeSerial(mvarSessionStartTime, 0, 0)) Then
  2.         SessionDate = DateAdd("d", -1, Date)
  3.     Else
  4.         SessionDate = Date
  5.     End If

to a SQL equivilant in a stored procedure


Does anyone have any ideas. SQL doesn't seem to have the vb equivilant functions.

Thanks