@xyzproject/date-time-util
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

DateTimeUtil

This is the DateTimeUtil component.

Installation

npm install date-time-util

Conversions

. convertUTCToLocal(utcDateString) - Convert UTC date string to local date string . convertLocalToUTC(localDateString) - Convert local date string to UTC date string

Getters

. getMonthFromUTC(utcDateString) - Get month (1-12) from UTC date string

. getDayFromUTC(utcDateString) - Get day (1-31) from UTC date string

. getTimeFromUTC(utcDateString) - Get time string (HH:MM:SS) from UTC date string

. getMonthFromLocal(localDateString) - Get month (1-12) from local date string

. getDayFromLocal(localDateString) - Get day (1-31) from local date string

. getTimeFromLocal(localDateString) - Get time string (HH:MM:SS) from local date string

Formatting

. getDefaultFormatDateAndTime(utcDateString) - Format UTC date & time in a default human-readable format

Readme

Keywords

none

Package Sidebar

Install

npm i @xyzproject/date-time-util

Weekly Downloads

0

Version

0.1.8

License

none

Unpacked Size

5.45 kB

Total Files

6

Last publish

Collaborators

  • z3delta
  • anusingh29
  • artgrove
  • barrett_kev_sapient
  • bhuvan.chawla