Jump to content

js date obj conversion to string


jimfog

Recommended Posts

I have a JS datetime object such as this.

start =Wed Mar 31 2021 09:00:00 GMT+0300 (Eastern European Summer Time)

And I am using the localedatestring and localetimestring to format it.

 

 var startsend=info.start.toLocaleDateString() + 'T' + info.start.toLocaleTimeString('el-GR', { hour12: false });

I do not undestand why console longing the above will produce a portion of the result date in a hyperlink format...

 

stringdteHyperlink.png.b3bced6164ab82f97cfa2891c4af99fb.png

 

 

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...