Skip to content

Instantly share code, notes, and snippets.

@palanisamym14
Created May 1, 2020 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palanisamym14/ddc6063ab1e0e476f79cfa9f4cdeef68 to your computer and use it in GitHub Desktop.
Save palanisamym14/ddc6063ab1e0e476f79cfa9f4cdeef68 to your computer and use it in GitHub Desktop.
public formatDate() {
return moment.utc(new Date().toISOString().replace(/T/, ' ').slice(0, -1)).format('YYYY-MM-DD HH:mm:ss.SSS');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment