Using date you specify the following format:
date -r test.txt +'%Y%m%d%H%M.%S' %Y: Year (with four digits)%m: Month number (with two digits)%d: Day (with two digits)%H: Hour (from 00 to 23)%M: Minutes%S: Seconds
You can check man date to more information.