/** * A class responsible for formatting and unformatting date/time. */ define( [ 'dojo/_base/declare', 'siemens/formatting/dateTimeFormatterHelper' ], function(declare, dateTimeFormatterHelper) { return declare( null, { constructor : function(info) { this.info = info; dateTimeFormatterHelper.dstHourIndicator = this.info.configuration.dstHourIndicator; }, format : function(value) { return dateTimeFormatterHelper.dateTimeToString(value, this.info.configuration); }, unformat : function(value) { return dateTimeFormatterHelper.stringToDateTime(value, this.info.configuration); } }); });