docs: function convert(dateTime, pattern, options) {
  	// If no pattern provided setting default one
  	var defaultPattern = pattern || '%hh%:%mm% %DD%/%MM%/%YYYY%';
  	
  	const filters = [
  		{
  			pattern: /%hh%/g,
  			replacement: (function() {
  				if(options && options.shortTime && dateTime.getHours() > 12) {
  					return dateTime.getHours() - 12;
  				} else {
  					return validateForOneDigit(dateTime.getHours());
  				}
  			})()
  		},
  		{
  			pattern: /%mm%/g,
  			replacement: validateForOneDigit(dateTime.getMinutes())
  		},
  		{
  			pattern: /%ss%/g,
  			replacement: validateForOneDigit(dateTime.getSeconds())
  		},
  		{
  			pattern: /%DD%/g,
  			replacement: validateForOneDigit(dateTime.getDate())
  		},
  		{
  			pattern: /%MM%/g,
  			replacement: validateForOneDigit(dateTime.getMonth() + 1)
  		},
  		{
  			pattern: /%YYYY%/g,
  			replacement: validateForOneDigit(dateTime.getFullYear())
  		},
  		{
  			pattern: /%YY%/g,	//TODO
  			replacement: validateForOneDigit(dateTime.getFullYear().toString().slice(2))
  		},
  		{
  			pattern: /%h%/g,
  			replacement: (function() {
  				if(options && options.shortTime && dateTime.getHours() > 12) {
  					return dateTime.getHours() - 12;
  				} else {
  					return dateTime.getHours();
  				}
  			})()
  		},
  		{
  			pattern: /%m%/g,
  			replacement: dateTime.getMinutes()
  		},
  		{
  			pattern: /%s%/g,
  			replacement: dateTime.getSeconds()
  		},
  		{
  			pattern: /%D%/g,
  			replacement: dateTime.getDate()
  		},
  		{
  			pattern: /%M%/g,
  			replacement: dateTime.getMonth() + 1
  		},
  		{
  			pattern: /%day%/g,
  			replacement: days[dateTime.getDay()]
  		},
  		{
  			pattern: /%month%/g,
  			replacement: months[dateTime.getMonth()]
  		},
  		{
  			pattern: /%relative%/g,
  			replacement: relative(dateTime)
  		},
  		{
  			pattern: /%12h%/g,
  			replacement: (function() {
  				if(options && options.shortTime) {
  					if(dateTime.getHours() > 11) {
  						return 'PM';
  					} else {
  						return 'AM';
  					}
  				}
  			})()
  		}
  	];
  	
  	filters.forEach(function(f) {
  		defaultPattern = defaultPattern.replace(f.pattern, f.replacement);
  	});
  	
  	if(options && options.shortTime &&
  	  pattern.indexOf('%12h%') === -1) {
  		if(dateTime.getHours() > 11) {
  			defaultPattern += ' PM';
  		} else {
  			defaultPattern += ' AM';
  		}
  	}
  
  	return defaultPattern;
  }