from typing import Optional
from datetime import datetime
from typing import Union


def na_py2win_datetime(dt: Optional[datetime]) -> Union[datetime, str]:
    """
    Convert nullable datetype for usage in MS Project
    """
    if dt is None:
        return "NA"
    else:
        return dt