def DatedString():
    """
    Returns dated string with this format
    2014_12_30_135857_4581860
    """

    from datetime import datetime
    now = str(datetime.now())
    now = now.replace('-', '_')
    now = now.replace(' ', '_')
    now = now.replace(':', '')
    now = now.replace('.', '_') + '0'

    return now

    Returns dated string with this format
    2014_12_30_135857_4581860
    
recipes/Python/578977_Python_SQLSMO_/recipe-578977.py