- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 05:55 AM
if I want the datetime in seconds it is correct to do so:
reqBodyPerson.dateOfBirth = new GlideDateTime(current.u_start_date_contract).getNumericValue();
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 06:39 AM
Hello,
Yes, this should work to convert date into epoch seconds. If it's not working please try
var gdt = new GlideDateTime();
gdt.setValue(current.getValue('u_start_date_contract'));
var ms = gdt.getNumericValue();
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Regards,
Akshay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 06:39 AM
Hello,
Yes, this should work to convert date into epoch seconds. If it's not working please try
var gdt = new GlideDateTime();
gdt.setValue(current.getValue('u_start_date_contract'));
var ms = gdt.getNumericValue();
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Regards,
Akshay