How to modify the directory date?

Solution 1:

You can use touch command with -t option. This is from man touch:

NAME
       touch - change file timestamps

SYNOPSIS
       touch [OPTION]... FILE...

DESCRIPTION
       Update  the  access  and modification times of each FILE to the current
       time.
[...]

-t STAMP
              use [[CC]YY]MMDDhhmm[.ss] instead of current time

An example:

touch -t 1312031429.30 /path/to/directory

will change the date modified for directory to 2013-12-03 14:29:30.