@xyzproject/date-time-util
v0.1.8
Published
DateTimeUtil Package
Downloads
1
Keywords
Readme
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