- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-28-2020 08:27 PM
Hi,
I have a custom table and one of the filed is" transfer_date" and its field date/time. I need to insert date&time with millisecond . But while i pass the value [sample : 2020-09-28 10:15:01:33 ] it has stored as 2020-09-28 10:15:01 only and the millisecond value did not insert . Please help to resolve this issue.
Regards,
Sagaya.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-28-2020 09:45 PM
Since it is date/time type it will only hold year-month-date HH:mm:ss
It is not possible to store milliseconds into the Date/time field.
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-28-2020 08:46 PM
Hello Sagaya,
Check below links, these might help you.
getNumericValue() - Set a duration field value
glide.sys.time_format to include milliseconds
Regards,
Harshal.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-28-2020 08:53 PM
You are going to have to convert it to a numeric value and then store it as a number or string.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-28-2020 09:45 PM
Since it is date/time type it will only hold year-month-date HH:mm:ss
It is not possible to store milliseconds into the Date/time field.
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader