1.0.2 • Published 9 months ago

@uxbooster/date v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@uxbooster/date

이 패키지는 날짜 관련 유틸리티 함수들을 제공합니다.

설치

npm install @uxbooster/date

사용법

import { formatDate } from '@uxbooster/date';

const formattedDate = formatDate(new Date(), 'yyyy년 MM월 dd일');
console.log(formattedDate); // 예: 2024년 05월 30일

함수 목록

이 패키지에서 제공하는 함수 목록은 다음과 같습니다.

함수 이름설명예제
convertDateToFormattedStringDate 객체를 'yyyyMMdd' 형식의 형식화된 문자열로 변환합니다.convertDateToFormattedString(new Date(2024, 0, 1))
convertStringToDate날짜 문자열 또는 Date 객체를 지정된 시간대의 Date 객체로 변환합니다.convertStringToDate('2024-01-01')
convertStringToDateFormat날짜 문자열 또는 Date 객체를 형식화된 날짜 문자열로 변환합니다.convertStringToDateFormat('2024-01-01T00:00:00+09:00')
formatDate주어진 형식 문자열과 한국어 로케일을 사용하여 날짜를 형식화합니다.formatDate(new Date(2024, 0, 1), 'PPPP')
getCurrentDate지정된 시간대의 현재 날짜를 가져옵니다.getCurrentDate('Asia/Seoul')
parseDateString날짜 문자열을 구문 분석하여 Date 객체를 반환합니다.parseDateString('2024-01-01')
1.0.2

9 months ago

1.0.1

9 months ago

1.0.1-beta.2

1 year ago

1.0.1-beta.1

1 year ago

1.0.0-beta.1

1 year ago

1.0.0-rc.5

1 year ago

1.0.0-rc.4

1 year ago

1.0.0-rc.2

1 year ago

1.0.0-rc.1

1 year ago

1.0.0

1 year ago