import time


def curr_datetime() -> str:
    """
    Get current time as formatted string.

    >>> curr_datetime()
    '16022021'

    """
    localtime = time.localtime()
    return time.strftime("%d%m%Y", localtime)