This is the DateTimeUtil component.
npm install date-time-util
. convertUTCToLocal(utcDateString) - Convert UTC date string to local date string . convertLocalToUTC(localDateString) - Convert local date string to UTC date string
. 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
. getDefaultFormatDateAndTime(utcDateString) - Format UTC date & time in a default human-readable format