Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Finance[NextWeekday] - advance the given date to the next given day of the week
Calling Sequence
NextWeekday(date, weekday)
Parameters
date
-
a string containing a date specification in a format recognized by ParseDate or a date data structure
weekday
Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sun, Mon, Tue, Wed, Thu, Fri, Sat, or an integer between 1 and 7; weekday
opts
(optional) equation(s) of the form option = value where option is output; specify options for the NextWeekday command
Description
The NextWeekday command returns the first date that follows the given date and falls on the given day of the week. If the specified date already falls on the specified day of the week, the date itself will be returned.
The parameter date must be a date given in one of the formats recognized by the ParseDate command.
The parameter weekday is the weekday of interest. It can be given either as a name or as an integer between 1 and 7. In the latter case, 1 represents Sunday, 2 represents Monday, etc.
Options
The opts argument can contain one or more of the options shown below.
output = data or formatted -- Specify the type of output the NextWeekDay command should return. If this option is set to data (default) the record containing the data information will be returned. Otherwise the data will be formated using the format deduced from the original date.
Compatibility
The Finance[NextWeekday] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
Return the first Monday that follows December 8, 2006.
Note that the last command returned a date data structure. It is printed as a string.
[11, 12, 2006]
Note that December 8, 2006 is already Friday.
See Also
Finance[AddHoliday], Finance[AdjustDate], Finance[Calendar], Finance[Calendars], Finance[IsBusinessDay], Finance[IsEndOfMonth], Finance[IsHoliday], Finance[JoinBusinessDays], Finance[JoinHolidays], Finance[NthWeekday], Finance[RemoveHoliday]
Download Help Document