for convert into date with given format
String toDate({required String format}) => DateFormat(format).format(DateTime.parse(this)).toString();