imports/vx/both/code/util.js
/**
     * Format a card expiration date.
     *
     * @param {string} expirationDate Card expiration date.
     * @returns {string} Number formatted card expiration date.
     */
Format a card expiration date.
@param {string} expirationDate Card expiration date.
@returns {string} Number formatted card expiration date.
Format a card expiration date . @param { string } expirationDate Card expiration date . @returns { string } Number formatted card expiration date .
formatExpirationDate(expirationDate) {
        if (!expirationDate) {
            return
        }
        try {
            return expirationDate.substring(0, 2) + " " + expirationDate.substring(2, 4)
        }
        catch (error) {
            OLog.error("util.js expirationDate error=" + error)
            return
        }
    }
formatExpirationDate ( expirationDate ) { if ( ! expirationDate ) { return } try { return expirationDate . substring ( 0 , 2 ) + " " + expirationDate . substring ( 2 , 4 ) } catch ( error ) { OLog . error ( "util.js expirationDate error=" + error ) return } }
Format a card expiration date.
Format a card expiration date .