Well, nothing wrong with it, but I prefer using the formal name. You might as well give the child, who will one day be an adult, a choice.
By the way, did you know, the name
Dan is a name in it's own right, as well as a nick-name for
Daniel? It's from the Bible.