DataBase used to classify the date formate

Xi i=1,2,3
1<- 0< Xi <=12
2<- 12<Xi<=31
3<- 31<Xi
4<- Xi as String
M<-Month
D<-Day
A <- Year (año)