In case that your are sending date from client to server, you need to send it as ISOString which means you are sending a UTC(Coordinated Universal Time) date. Then, when you retrieve it from the server you can format it as you please.