Jump to content

Getting Date and Time Without Seconds


ben03

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?

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...