I have seen two different forms of Schrödinger equation: $$i\hbar\frac{\partial|\psi(t)\rangle}{\partial t}=\hat{H}|\psi(t)\rangle$$ and $$i\hbar\frac{d|\psi(t)\rangle}{d t}=\hat{H}|\psi(t)\rangle.$$
Are these two equations equivalent? If not, in what situations are each equation used?