EmailParser.ReceiveDate
-----------------------

Queries the date and time of the email.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [EmailParser](component_EmailParser.md) | [6.4](newinversion64.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "EmailParser.ReceiveDate"; EmailID ) 

**MBS**( **"EmailParser.ReceiveDate";** /\* Queries the date and time of the email. \*/  
**$EmailID**) /\* The ID fo the email parser.e.g. $Email \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EmailID | The ID fo the email parser. | $Email |

### Result

Returns timestamp or error.

### Description

Queries the date and time of the email.  
Can be empty. This is for received time at server.  
The plugin looks in email headers for a receive: header and parses the date.  
The returned date is normalized to current time zone.  
### Examples

Show dates:

 Set Field \[Email Parser::Date1 ; MBS ("[EmailParser.SentDate](EmailParserSentDate.md)"; $email )\]  
Set Field \[Email Parser::Date2 ; MBS ("EmailParser.ReceiveDate"; $email )\]  
### See also

- [EmailParser.SentDate](EmailParserSentDate.md)

### Release notes

- **Version 14.2**
    - Fixed an issue with [EmailParser.ReceiveDate](https://www.mbsplugins.eu/EmailParserReceiveDate.shtml) and [EmailParser.SentDate](https://www.mbsplugins.eu/EmailParserSentDate.shtml) function with east asian time zones.
- **Version 11.3**
    - Fixed a problem with a [math](https://www.mbsplugins.eu/component_Math.shtml) function, which affected time zone calculation for [EmailParser.SentDate](https://www.mbsplugins.eu/EmailParserSentDate.shtml), [EmailParser.ReceiveDate](https://www.mbsplugins.eu/EmailParserReceiveDate.shtml) and [Time.TimeStampToUTC](https://www.mbsplugins.eu/TimeTimeStampToUTC.shtml) functions (broken in v11.2).

### Example Databases

- [CURL/Email/IMAP Email](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/IMAP%20Email.shtml#4ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 14.2pr5](https://www.mbsplugins.de/archive/2024-05-08/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 23 - MailParser](https://www.mbsplugins.de/archive/2023-12-23/MBS_Plugin_Advent_calendar_23_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.3pr2](https://www.mbsplugins.de/archive/2021-06-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.4pr2](https://www.mbsplugins.de/archive/2016-07-27/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 25th July 2016 , last changed 25th July 2016

  
[EmailParser.ProcessImageReferences](EmailParserProcessImageReferences.md) - [EmailParser.Release](EmailParserRelease.md)

[HTML Version](EmailParserReceiveDate.shtml)