---
title: "startOfDay"
canonical: "https://support.appfire.com/space/PSJ/15489601/startOfDay"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | startOfDay(date) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns a date, but strips off the hours, minutes and seconds.

Returns a date, but strips off the hours, minutes and seconds.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| date | Date | Yes | Specifies a Date expression. |

## Return Type

**Date**

## Examples

### Example 1

```
if(datepicker < startOfDay(currentDate())){
    return false;
}
```

### Example 2

```
date varDate = "2011-08-17";
print("Date is " + startOfDay(varDate));
```

Print **Date is 17/Aug/11**

## See also

> Macro (contentbylabel)