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: 
I strongly suspect that your issue is similar to the one in this question:

[How to Enable Migration to update my database in MVC4?](https://stackoverflow.com/questions/17922945/how-to-enable-migration-to-update-my-database-in-mvc4)

Check the selected answer and see if that helps with your issue.
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.