T-SQL Format de Date avec sous-Chaîne

Nous avons un champ par son nom target_date. C'est une chaîne. Nous avons besoin d'extraire le mois et l'année à partir de ce champ.

Exemple:
1/10/2011(jj/mm/aaaa)
nous sommes en train d'essayer avec

 substring(target date,findstring(targetdate,"/",1)+1,(findstring(targetdate,"/",2)-findstring(targetdate,"/",1)+1)).

S'il vous plaît aider moi.

Grâce.

InformationsquelleAutor user1110036 | 2011-12-21