toISOString may be more appropriate, as the client may need to sort the chats by time