To add mmond's answer (you can not comment due to insufficient reputation), do not forget about localization. To work with any localization, the answer should look like this:
#!/bin/sh
STAMP=`LANG= date -r file_name`
> file_name
touch -d "$STAMP" file_name
source
share