I want to split the Birthdate column in my database..
Returned String from database : dd/mm/yyyy
I want to get each value on a seperate strings,
date = dd
month = mm
year = yyyy
I’ve tried something like this.. but this dont always work because some date were only one character? ex. 4/5/2012
Birthdate.ToString.Substring(0, 2)
Alternatively could you not convert the string coming back from the DB to a date? You could subsequently access each component part by using
Date.Month, etc.