JS timestamp
I used to do:
Date.parse(new Date()) // 22 characters
now I do:
+new Date // 9 characters
anything to save from typing more :)
Written by Bruce Lim
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Timestamp
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#