SHARE
TWEET

Untitled

a guest Apr 3rd, 2018 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // get the date (story is an interface and due_date is of type Date):
  2. ---------------------Format: Thu Apr 28 2022 00:00:00 GMT+0200 (CEST)------
  3. this.story.due_date = new Date(Date.parse(this.formGroup.get("dueDate").value));
  4.  
  5. // patching the date uses this date (network tab in chrome request payload):
  6. "2023-04-26T22:00:00.000Z"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top