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 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.