# -*- coding: iso-8859-1 -*- #. // _by_sMonth.py #. // Renvoie le mois de la date en caractères. from datetime import date def by_sMonth( dDate = date.today() ): wDate = dDate wDate = '{:%m}'.format( wDate ) return wDate ''' Dernière modification : 2022-02-21 [Exemple] import sys sys.path.append( "modules" ) from _by_sMonth import by_sMonth # // Renvoie le mois de la date en caractères. print() print( by_sMonth() ) print( type( by_sMonth() ) ) [/Exemple] '''