DayOfWeek - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Finance

  

DayOfWeek

  

return the day of the week on which the given date falls

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

DayOfWeek(date)

Parameters

date

-

a string containing a date specification in a format recognized by ParseDate or a Date data structure; date

Description

• 

The DayOfWeek command returns the day of the week on which the given date falls.

Examples

> 

with⁡Finance:

Return the day of the week for dates given in the string form.

> 

DayOfWeek⁡November 09, 2006

Thursday

(1)
> 

DayOfWeek⁡Nov-09-07

Wednesday

(2)

Return the day of the week for a date given as a record.

> 

date≔FormatDate⁡November 19, 2006,record

date≔Record⁡weekDay=1,monthDay=19,month=11,year=2006,format=%B %e, %Y

(3)
> 

DayOfWeek⁡date

Sunday

(4)

Return the day of the week for a date given as a list.

> 

date≔FormatDate⁡November 19, 2006,list

date≔19,11,2006

(5)
> 

DayOfWeek⁡date

Sunday

(6)

By default the global evaluation date is used.

> 

SetEvaluationDate⁡November 19, 2006:

> 

EvaluationDate⁡

November 19, 2006

(7)
> 

DayOfWeek⁡

Sunday

(8)

Compatibility

• 

The Finance[DayOfWeek] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

Finance[AdjustDate]

Finance[AdvanceDate]

Finance[Calendar]

Finance[Calendars]

Finance[FormatDate]

Finance[IsBusinessDay]

Finance[IsEndOfMonth]

Finance[IsHoliday]

Finance[JoinBusinessDays]

Finance[JoinHolidays]

Finance[ParseDate]

Finance[RemoveHoliday]

StringTools[ParseTime]