#+
    # MODIS_FILENAME2DATE : Convert MODIS file name to MODIS date
    # 
    # @author: Renaud DUSSURGET (LER PAC/IFREMER)
    # @history: Created by RD on 29/10/2012
    #
    #-

def modis_filename2modisdate(modis_fname):
    """
    #+
    # MODIS_FILENAME2DATE : Convert MODIS file name to MODIS date
    # 
    # @author: Renaud DUSSURGET (LER PAC/IFREMER)
    # @history: Created by RD on 29/10/2012
    #
    #-
    """
    
    if not isinstance(modis_fname,list) : modis_fname=[modis_fname]
    
    return [os.path.splitext(os.path.basename(m))[0][1:12] for m in modis_fname]