I need to covert 12/02/2024 to epoch timestamp in postman
I attempted to manipulate the present date by adding or subtracting days as needed, but the outcome did not meet my expectations.
var admissionDatePrePaid = pm.environment.set("admissionDatePrePaid", new Date().getTime());
but this resulted in 13 digits, but my requirement was getting 10 digits
Math.floor() will address your problem,
Demo In Pre-request Script,
Result in console