Does anyone know why this function wouldnt be recognized on skuid platform?
dateVar.setTime(dateVar.getTime())
I receive an error
“There was a problem rendering a component of type skootable: dateVar.getTime is not a function”
I seemed to be able to make it work. Do you have your snippet? Are you loading
$ = skuid.$;
snippet: ![](https://us.v-cdn.net/6032350/uploads/attachments/RackMultipart20171102-3888-a96wf4-Screen_Shot_2017-11-01_at_7.34.40_PM_inline.png "Image https//d2r1vs3d9006apcloudfrontnet/s3\_images/1668241/RackMultipart20171102-3888-a96wf4-Screen\_Shot\_2017-11-01\_at\_73440\_PM\_inlinepng1509590191") console log: ![](https://us.v-cdn.net/6032350/uploads/attachments/RackMultipart20171102-92722-66xq8x-Screen_Shot_2017-11-01_at_7.34.27_PM_inline.png "Image https//d2r1vs3d9006apcloudfrontnet/s3\_images/1668242/RackMultipart20171102-92722-66xq8x-Screen\_Shot\_2017-11-01\_at\_73427\_PM\_inlinepng1509590199")
$ = skuid.$;
var model = skuid.$M(‘Contacts’);
var row = model.getFirstRow();
var dateVar = row.LastContact;
dateVar.setTime(dateVar.getTime());
model.updateRow(row,{LastContact : dateVar});
Realized that we hadnt converted the milliseconds back to a date … but still no joy
var params = argumentst0],
$ = skuid.$;
var model = skuid.$M(‘AllContacts’);
var row = model.getFirstRow();
var dateVar = row.LastContact;
var now = dateVar.getTime();
var date = new Date(now);
model.updateRow(row,{LastContact : date});
Done … Thanks for the assist
var params = argumentst0],
$ = skuid.$;
var model = skuid.$M(‘AllContacts’);
var row = model.getFirstRow();
var dateVar = new Date();
var now = dateVar.getTime();
var date = new Date(now);
model.updateRow(row,{LastContact : date});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.