GetPrevShiftStartTime Method (LaborExec)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetPrevShiftStartTime() method retrieves the shift start time of the shift in which the last labor event occurred is either prior to the current shift or prior to the supplied shift.
'Declaration
Public Shared Sub GetPrevShiftStartTime( _
ByVal userId As String, _
ByVal entId As Integer, _
ByVal shiftStartTime As Nullable(Of Date), _
ByRef prevShiftStartTime As Date _
)
'Usage
Dim userId As String
Dim entId As Integer
Dim shiftStartTime As Nullable(Of Date)
Dim prevShiftStartTime As Date
LaborExec.GetPrevShiftStartTime(userId, entId, shiftStartTime, prevShiftStartTime)
public static void GetPrevShiftStartTime(
string userId,
int entId,
Nullable<DateTime> shiftStartTime,
out DateTime prevShiftStartTime
)
Parameters
- userId
- Required. Holds the ID of the user associated with the labor event.
- entId
- Required. Holds the ID of the entity.
- shiftStartTime
- Optional. Holds the shift start time to identify the previous shift. To not specify a shift start time, pass a null.
- prevShiftStartTime
Output. Holds the shift start time of the shift in which the last labor event occurred is either prior to the current shift or prior to the supplied shift. If no labor events are found for that shift, a null value is returned.