date to square bracket