---
schema_version: "1"
id: 1cff02d54cc0284fc30c43508280f4d15bf3837e3ae4cf2025084c41c16f81c4
title: AMPscript Date and Time Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/date-time/mc-ampscript-reference-date-time.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 27a24a2df13b00bbc04975a138efadb3d9b5391a614a35648bf3e0f272fa1372
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# AMPscript Date and Time Functions

Use the AMPscript Date and Time functions to retrieve, transform, and display times and dates.

This table lists all of the AMPscript functions related to dates and times. The value in the Engagement column indicates whether Marketing Cloud Engagement supports the function. The value in the Next column indicates whether Marketing Cloud Next supports the function.

| Function Name                                                                            | Description                                             | Engagement | Next        |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------- | ---------- | ----------- |
| [DateAdd()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-date-add.md)                                | Adds a specified time value to a date.                  | ✅ Yes     | ✅&nbsp;Yes |
| [DateDiff()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-date-diff.md)                              | Returns the difference between two dates or times.      | ✅ Yes     | ✅ Yes      |
| [DateParse()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-date-parse.md)                            | Returns a DateTime object from a date string.           | ✅ Yes     | ✅ Yes      |
| [DatePart()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-date-part.md)                              | Extracts a date part from a date or timestamp string.   | ✅ Yes     | ✅ Yes      |
| [FormatDate()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-format-date.md)                          | Formats a string as a date value.                       | ✅ Yes     | ✅ Yes      |
| [GetSendTime()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-get-send-time.md)                       | Returns a timestamp for the beginning or end of a send. | ✅ Yes     | ❌ No       |
| [LocalDateToSystemDate()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-local-date-to-system-date.md) | Converts a local datetime string to the system time.    | ✅ Yes     | ❌ No       |
| [Now()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-now.md)                                         | Returns the current system timestamp.                   | ✅ Yes     | ✅ Yes      |
| [StringToDate()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-string-to-date.md)                     | Converts a date string to a .NET datetime object.       | ✅ Yes     | ✅ Yes      |
| [SystemDateToLocalDate()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-system-date-to-local-date.md) | Converts the system time to a local datetime string.    | ✅ Yes     | ❌ No       |
