Bit of code I was looking at


var gdtBST = new GlideDateTime();
var tz = Packages.java.util.TimeZone.getTimeZone("Europe\London");
gdtBST.setTZ(tz);
gdtBST.setDisplayValue(current.getDisplayValue('opened_at'));
var dT = gdtBST.toString();
var dateSection = dT.split(' ')[0]; //Gets the Date
var timeSection = dT.split(' ')[1]; //Gets the Time
current.u_call_log_date = dateSection;
current.u_call_log_time = timeSection;

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue