cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Format Dates for model create

former_member239819
Participant
0 Likes
207

I'm hard-coding some dates to write back to a model.

E.g.

oEntry.StartDate = "2016-03-28T00:00:00";

This is throwing out an invalid date error on:

oModel.create("/CalendarSet", oEntry, {

  success : success,

  error : error

  });

What is the correct format for the date?

View Entire Topic
junwu
SAP Champion
SAP Champion
0 Likes

what's the datatype for the field?

if it is date, you just put a date object there, i think.