import 'package:intl/intl.dart'; /// Locale-aware short date (S5-R4). /// /// Replaces the old hardcoded `DD/MM/YYYY` pattern, which was wrong for /// locales like en-US (M/D/Y) or ja (Y/M/D). [localeTag] accepts both /// BCP-47 ('en-US') and ICU ('en_US') forms — intl canonicalizes them. /// /// Date symbols for the active locale are loaded by /// GlobalMaterialLocalizations, so any widget below MaterialApp can call /// this safely. String fechaCortaLocalizada(String localeTag, DateTime fecha) => DateFormat.yMd(localeTag).format(fecha);