EmailParser.SentDate
--------------------

Queries the date and time of the email.

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

MBS( "EmailParser.SentDate"; EmailID ) 

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

(old name: EmailParser.Date)

### 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 the sent date from email client.  
The plugin looks in email headers for a Date: 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"; $email )\]  
Set Field \[Email Parser::Date2 ; MBS ("[EmailParser.ReceiveDate](EmailParserReceiveDate.md)"; $email )\]  
### See also

- [EmailParser.ReceiveDate](EmailParserReceiveDate.md)
- [EmailParser.Release](EmailParserRelease.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/Email Parser and Preview](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/Email%20Parser%20and%20Preview.shtml#1ScriptAnchor_)
- [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)
- [MBS FileMaker Plugin, version 5.4pr1](https://www.mbsplugins.de/archive/2015-10-11/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 3th October 2015 , last changed 7th February 2019

  
[EmailParser.ReleaseAll](EmailParserReleaseAll.md) - [EmailParser.Source](EmailParserSource.md)

[HTML Version](EmailParserSentDate.shtml)