function convertStringToDate (campaignInfos) {
    campaignInfos.created_date = new Date(campaignInfos.created_date);

    if (campaignInfos.local_push_time) {
        campaignInfos.local_push_time = new Date(campaignInfos.local_push_time);
    } else {
        campaignInfos.push_time = new Date(campaignInfos.push_time);
    }

    return campaignInfos;
}
/**
 * This utility function will convert string representation of dates into Date objects
 *
 * @param {CampaignInfos} campaignInfos
 * @returns {CampaignInfos}
 */
This utility function will convert string representation of dates into Date objects
@param {CampaignInfos} campaignInfos
@returns {CampaignInfos}
This utility function will convert string representation of dates into Date objects @param { CampaignInfos } campaignInfos @returns { CampaignInfos }
function convertStringToDate (campaignInfos) {
    campaignInfos.created_date = new Date(campaignInfos.created_date);
    if (campaignInfos.local_push_time) {
        campaignInfos.local_push_time = new Date(campaignInfos.local_push_time);
    } else {
        campaignInfos.push_time = new Date(campaignInfos.push_time);
    }
    return campaignInfos;
}
function convertStringToDate ( campaignInfos ) { campaignInfos . created_date = new Date ( campaignInfos . created_date ) ; if ( campaignInfos . local_push_time ) { campaignInfos . local_push_time = new Date ( campaignInfos . local_push_time ) ; } else { campaignInfos . push_time = new Date ( campaignInfos . push_time ) ; } return campaignInfos ; }
This utility function will convert string representation of dates into Date objects
 @param {CampaignInfos} campaignInfos
 @returns {CampaignInfos}
This utility function will convert string representation of dates into Date objects @param { CampaignInfos } campaignInfos @returns { CampaignInfos }