formatInputToDateTime method

DateTime formatInputToDateTime({
  1. String? specificFormat,
})

Implementation

DateTime formatInputToDateTime({String? specificFormat}) {
  return DateFormat(specificFormat ?? 'dd/MM/yyyy').parse(this);
}