@classmethod
def datetimeformat(cls, x, x_format, y_format='%y-%m-%d h:m:s'):
    """
        datetimeformat method takes three input of string type
        input1: datetime value
        input2: datetimeformat of input1
        input3: output datetime format 
        output: datetime value is converted into user defined datetime value with format done on input1 using input 3
        """
    x_date, x_time = cls.get_itemformat_value(x, ' ')
    x_format_date, x_format_time = cls.get_itemformat_value(x_format, ' ')
    y_format_date, y_format_time = cls.get_itemformat_value(y_format, ' ')
    output_date = cls.dateformat(x_date, x_format_date, y_format_date)
    output_time = cls.timeformat(x_time, x_format_time, y_format_time)
    output = [output_date, output_time]
    output_datetime = ' '.join(output)
    return output_datetime
