Try other D chords, if you can play them better. Dm or D7 for example. Once you got one of them going, then it is easier to tackle D major. I learned Dm first.
D5 would be a nice shortcut too, as you only need 2 fingers (but use the ones you would use with D major)
D5:
e --------
B ---3---
G ---2---
D ---0---
A --------
E --------