1: 2:
// where str is "2010-08-02" and that 08 is the month Date ( Middle ( str; 6; 2 ) ; Middle ( str; 9; 2 ) ; Middle ( str; 1; 4) )