Created
August 31, 2019 12:41
-
-
Save meysampg/b74c91ea07e1d162eb35cf40cd59a46f to your computer and use it in GitHub Desktop.
return a ready to use timestamp for SQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new Date().toISOString().split('.')[0].split('T').join(' ') | |
| # "2019-08-31 12:40:44" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment