XL.Date.TimeStampToDouble
-------------------------

Converts a date to a numeric value for writing in a number cell.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Date.TimeStampToDouble"; BookRef; TimeStamp ) 

**MBS**( **"XL.Date.TimeStampToDouble";** /\* Converts a date to a numeric value for writing in a number cell. \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$TimeStamp**) /\* The time, date or time stamp to convert.e.g. Get ( CurrentTimeStamp ) \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| TimeStamp | The time, date or time stamp to convert. | Get ( CurrentTimeStamp ) |

### Result

Returns value or error.

### Description

Converts a date to a numeric value for writing in a number cell.  
This uses current time zone.  
### Examples

Convert current timestamp:

 MBS ( "XL.Date.TimeStampToDouble"; $bookRef ; Get ( CurrentTimeStamp ))  
### Blog Entries

- [LibXL for FileMaker with extras](https://www.mbsplugins.de/archive/2021-03-02/LibXL_for_FileMaker_with_extra/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.0pr10](https://www.mbsplugins.de/archive/2015-02-06/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 6th February 2015 , last changed 6th February 2015

  
[XL.Date.Pack](XLDatePack.md) - [XL.Date.UnPack](XLDateUnPack.md)

[HTML Version](XLDateTimeStampToDouble.shtml)