Function StringToTimeSlot(Format, Calendar, MomentString)


The function StringToTimeSlot determines the time slot in a calendar that corresponds with the a moment that is specified using a free format string.

     Format,         ! (input) a string expression
     Calendar,       ! (input) a calendar
     MomentString    ! (input) a string expression



A string that holds the date and time format used in the third argument MomentString. Valid format strings are described in Format of Time Slots and Periods


An identifier of type calendar.


A string expression of the moment (using the format given in Format) that should be matched with the time slots in the calendar.

Return Value

The function StringToTimeSlot returns the time slot in the calendar that contains the given moment.

See also

The functions CurrentToTimeSlot, MomentToTimeSlot.