StaticformatFormats the current date and time based on switches.
Whether to include time in the output
Whether to include date in the output
Formatted date/time string
// Returns: "2025/12/29"
CPDFDateUtil.formatDateTime({ timeSwitch: false, dateSwitch: true });
// Returns: "14:30:45"
CPDFDateUtil.formatDateTime({ timeSwitch: true, dateSwitch: false });
// Returns: "2025/12/29 14:30:45"
CPDFDateUtil.formatDateTime({ timeSwitch: true, dateSwitch: true });
// Returns: ""
CPDFDateUtil.formatDateTime({ timeSwitch: false, dateSwitch: false });
StaticgetGets a formatted timestamp for CPDFTextStamp. This is an alias for formatDateTime.
Whether to include time in the output
Whether to include date in the output
Formatted date/time string
Utility class for date and time formatting, specifically for CPDFTextStamp.