gl-w-frontend
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -16,2 +16,3 @@ import { IDate, IDateLocal, IDayMonthYear, IDaysOfMonth, IWeeksOfMonth } from './core-services-date.interface'; | ||
currentDateNoUTCString(outputFormat?: string): string; | ||
customDateExcelNoUTC(date: IDate, format?: string): Date; | ||
dayMonthYear(date: IDate, format?: string, separator?: string): IDayMonthYear; | ||
@@ -18,0 +19,0 @@ dayMonthYearNoUCT(date: IDate, format?: string, separator?: string): IDayMonthYear; |
@@ -50,2 +50,6 @@ import * as moment from 'moment'; | ||
} | ||
customDateExcelNoUTC(date, format = 'DD/MM/YYYY') { | ||
const finalDate = this.customDate(date, format); | ||
return moment.utc(finalDate, format).add(0.5, 'minute').add(-2, 'seconds').toDate(); | ||
} | ||
dayMonthYear(date, format = 'DD/MM/YYYY', separator = '/') { | ||
@@ -52,0 +56,0 @@ const x = moment(date, format, true).format(format); |
{ | ||
"name": "gl-w-frontend", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Common code for using among web front-end development such as ES6+ and TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bundle.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
255882
3940