Maptitude GISDK Help

NextOccurrence()

Summary

Returns the date of the next occurrence of a given day.

 

Changes

In Version 5.0 no longer accepts string of form "mm/dd/yy."

 

Syntax

nextoccur = NextOccurrence(string date, string day)

 

Argument

Contents

date

String of the form "mm/dd/yyyy"

day

String day of the week

 

Returns

A string of the form "mm/dd/yyyy."

 

Example

nextoccur = NextOccurrence("1/1/1997", "Sunday")

 

Error Codes

Error Type

Meaning

NotFound

The day of the week is not valid

 

See Also

Function

Summary

DayOfWeek()

Converts a date to a day of the week

NextDate()

Returns a new date given an original date and an offset in days

 

 

©2025 Caliper Corporation www.caliper.com