mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			228 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			228 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import moment from 'moment';
 | 
						|
 | 
						|
class DateHelper {
 | 
						|
  constructor(date) {
 | 
						|
    this.date = moment(date * 1000);
 | 
						|
  }
 | 
						|
 | 
						|
  format(dateFormat = 'MMM DD, YYYY') {
 | 
						|
    return this.date.format(dateFormat);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
export default DateHelper;
 |