How to insert a current date time from script to a DateTime field ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 07:26 AM
Hi everyone,
I want to add a current dateTime to my dateTime field, in the wiki there is this way :
var gr = new GlideRecord('table_name');
gr.addQuery('some_query');
gr.query();
gr.my_dateTime_field = gs.nowDateTime();
gr.update();
but it doas not work for me !
doas anyone know how to fix this issue ?
thank you
- Labels:
-
Scripting and Coding
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 08:41 AM
is that possible ?, this is my be interesting for others

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 08:42 AM
I am not sure. But I believe you will see a option to make this as question when you open the thread directly not from the inbox view.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 08:49 AM
It is not possible after 15 min from the creation of the discussion im so sorry 😕

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 08:52 AM
Not a problem. I am glad you got your question answered.