---
title: GeolocationPosition.timestamp
slug: Web/API/GeolocationPosition/timestamp
tags:
  - API
  - Geolocation API
  - GeolocationPosition
  - Property
  - Secure context
  - timeStamp
browser-compat: api.GeolocationPosition.timestamp
---
{{securecontext_header}}{{APIRef("Geolocation API")}}

The **`GeolocationPosition.timestamp`** read-only property returns a {{domxref("DOMTimeStamp")}} object, represents the date and the time of the creation of the {{domxref("GeolocationPosition")}} object it belongs to. The precision is to the millisecond.

## Syntax

    var timestamp = geolocationPositionInstance.timestamp

### Value

A {{domxref("DOMTimeStamp")}} object instance.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- [Using the Geolocation API](/en-US/docs/Web/API/Geolocation_API/Using_the_Geolocation_API)
- {{domxref("GeolocationPosition")}}
