<@U3MCU16RY> FWIW you could also shorten things up...
# suitescript
e
@Aiden Y. FWIW you could also shorten things up quite a bit; something like:
Copy code
var getCurrentDate = function(asOfDate) {
	var dateStr = format.format({
		"value": (asOfDate || new Date()),
		"type": format.Type.DATE
	});
	return format.parse({
		"value": dateStr,
		"type": format.Type.DATE,
		"timezone": format.Timezone.AMERICA_NEW_YORK
	});
};