---
title: "dayOfWeek"
canonical: "https://support.appfire.com/space/PSCONF/15303217/dayOfWeek"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | dayOfWeek(date) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the day of week.

Returns the day of week. English only. One of the following string values: "Sun","Mon","Tue","Wed","Thu","Fri","Sat".

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | date | Date | Yes | Specifies a Date or DateTime expression. |

## Return Type

**String**

## Examples

### Example 1

```javascript
print("Today is " + dayOfWeek(currentDate()));
```

### Example 2

```javascript
date varDateTime = "2011-08-17T18:30:55";
print("Day of week is " + dayOfWeek(varDateTime));
```

Print **Day of week is Wed**

## See also

> Macro (contentbylabel)