Jump to content

Getting Date and Time Without Seconds

Recommended Posts

Hi there,

I am new to Javascript, and finding displaying date and time confusing.

I am using 

new Date().toLocaleString()

...which is perfect, however I am trying to remove seconds on the end as these are not relevant. How do I achieve this?


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...