Question: Why can't I store this?

```
FOR %%a IN ("some_file_path") DO (
    SET FileDateTime=%%~ta
    echo !FileDateTime!
)

```

Output is ~ta

This doesn't work either.

```
Setlocal EnableDelayedExpansion
FOR %%a IN ("some_file_path") DO (
    SET FileDateTime=!!~ta
)

```

Answer: 
The solution for the mentioned error "The context type .... was not found" is to select the correct project that holds the context type before running the enable-migration command. You can choose the correct project from the "default project" drop down at the top of Nuget manager tool window.
The solution to this problem is simple, just remove the dot (.) at the end of this statement "Enable-Migrations -ContextTypeName eManager.Web.Infrastructure.DepartmentDb." and run the package manager console again, the migration should be enabled.