Skip to content

Home > resol-vbus-core > utils > Formatter > datecode

utils.Formatter.datecode() method

Formats a Date into a UTC datecode representation ('YYYYMMDD').

Signature:

typescript
datecode(timestamp: Date): string;

Parameters

Parameter

Type

Description

timestamp

Date

The timestamp.

**Returns:**

string

The UTC datecode string represenation.