Skip to content

nextcloud-libraries/nextcloud-moment

Repository files navigation

@nextcloud/moment

REUSE status Build Status npm Documentation

Customized moment.js for Nextcloud automatic locale detection.

Installation

npm i -S @nextcloud/moment

Usage

import moment from '@nextcloud/moment'

moment(1578511019).format('L')
// -> returns date formatted in format according to user locale