1

I query date from parse and see that my date type column return as json object

newsPublishDate: {
__type: "Date"
iso: "2015-10-20T11:41:00.000Z"
}

while createdAt column also a date type but return a String

createdAt: "2015-10-24T11:38:14.766Z"

how can i make parse return my date column as a string? thank you so much.

2
  • 1
    Huh, interesting never noticed this before... I guess you could convert it back into a date, but that doesn't really answer your question Commented Oct 27, 2015 at 20:49
  • 1
    i have changed date type to string type in parse. so the json return will be simpler. Commented Oct 28, 2015 at 15:48

1 Answer 1

1

@MichaelP try newsPublishDate.iso assuming the name of the variable that contains the JSON object is called newsPublishDate.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.