26 lines
886 B
Java
26 lines
886 B
Java
package com.prolificinteractive.materialcalendarview.format;
|
|
|
|
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
|
|
import com.prolificinteractive.materialcalendarview.CalendarDay;
|
|
import java.text.DateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Locale;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class DateFormatDayFormatter implements DayFormatter {
|
|
private final DateFormat dateFormat;
|
|
|
|
public DateFormatDayFormatter() {
|
|
this.dateFormat = new SimpleDateFormat(KtaJsonExactionHelper.OBJECT, Locale.getDefault());
|
|
}
|
|
|
|
public DateFormatDayFormatter(DateFormat dateFormat) {
|
|
this.dateFormat = dateFormat;
|
|
}
|
|
|
|
@Override // com.prolificinteractive.materialcalendarview.format.DayFormatter
|
|
public String format(CalendarDay calendarDay) {
|
|
return this.dateFormat.format(calendarDay.getDate());
|
|
}
|
|
}
|