Documentation of the CarRentalAgentService

RegionsWithLocationsRequest.DepartureDateTime Property

Gets or sets the ISO 8601 date and time the customer wants to depart with Vehicle (start rental date and time). This is used to check fo stopsales while searching for potential Regions and Locations.

public  DepartureDateTime {get; set;}

Remarks

This property is optional, even though it is recommended to set this property anytime it is possible(use those variants that allow to set this property). The value is used to evalute whether a pickup or dropoff stopsale is set for the Locations of the returned Regions. That means that the Region isn't bookable within the requested period, if all available Locations are inactive. Therefore those Regions will not be delivered in the RegionsWithLocationsResponse. The embedded Locations are separately excluded from the RegionsWithLocationsResponse too, if they're not bookable in the requested timeframe.

This property is a string. Its value is a ISO 8601 formatted date and time string. Depending on your implementation language, you may convert it to a date or datetime type.

ISO 8601 Date and Time Formatting

The ISO 8601 Date/Time format is specified as follows:

Pattern Examples
YYYY-MM-DDThh:mm:ss

whereas:

  • YYYY - is the full 4-digit year
  • MM - is the 2-digit month (with leading zeros)
  • DD - is the 2-digit day (with leading zeros)
  • hh - is the 2-digit, 24-style hour (with leading zeros)
  • mm - is the 2-digit minute (with leading zeros)
  • ss - is the 2-digit second (with leading zeros)

  • 2005-07-04T10:30:00 - July, the 4th of 2005 at 10:30 o'clock.
  • 2010-12-24T20:30:45 - December, the 24th of 2010, 8:30 PM in the evening, 15 seconds left to next minute.
  • 2006-01-01T00:00:00 - January, the 1st of 2006 - indefinite time.
  • 0000-00-00T15:00:00 - 15 o'clock, afternoon, indefinite date.
  • 2008-06-00T00:00:00 - June, 2008 - indefinite day and time.

See Also

RegionsWithLocationsRequest Class | SunnyCars.Schema.Osi.WsReservation.V4 Namespace