> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting UNIX Timestamps in VB

Many Subscribe objects and methods require a timestamp. By default, VB uses a built-in Microsoft date technology that produces different timestamp data than the timestamp that Subscribe expects. To generate a timestamp from a VB date, add a VB function to your Subscribe application, as follows:

```

Function UnixDate (ByVal theDate)
   UnixDate = DateDiff("s", "01/01/1970 00:00:00", theDate)
End Function
```

To set a timestamp for a `TransactionDetail` object named `detail`:

```

Dim timestamp = UnixDate(Now())
detail.SetTimestamp(timestamp)
```

**Parent topic:**[Support for Development](../topics/Support_for_Development)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.