- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
‎08-30-2024 07:54 AM
Hello,
I am Trying to set a default Date and Time for the Catalog Variable Date Time Picker.
Instance Version: Washington DC
Using Script Include
My script so far is not working, can easily set day 14 days in advance but the time does not seem to set.
I need to return todays date + 14 days & 5:00 PM .
Solved! Go to Solution.
- Labels:
 - 
						
							
		
			Service Catalog
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
‎08-30-2024 08:20 AM
Try this instead.
var gdt = new GlideDateTime();
gdt.addDays(14);
var timeSplit = gdt.toString().split(" ");
var datetime = timeSplit[0] + " 17:00:00";
gs.log(datetime);
					
				
			
			
				
			
			
				
			
			
				
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
‎08-30-2024 08:20 AM
Try this instead.
var gdt = new GlideDateTime();
gdt.addDays(14);
var timeSplit = gdt.toString().split(" ");
var datetime = timeSplit[0] + " 17:00:00";
gs.log(datetime);
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
‎08-30-2024 08:56 AM
Thank you very much for assisting me.
