Question: Below is code

```
given().
        get("http://services.groupkt.com/country/get/all").        
then().
      body("RestResponse.result.name", hasItems("Austria","Algeria")).log().all();

```

hasItems() is not recognized by IDE, showing as can't resolve method hasItems()

Maven dependecies exist: Rest assured, groovy, hamcrest.

please help me.

Answer: 
if you want to work with date, you can use momentjs module:
<https://momentjs.com>

```
moment().format('MMMM Do YYYY, h:mm:ss a'); // July 13th 2017, 11:18:05 pm
moment().format('dddd');                    // Thursday
moment().format("MMM Do YY");               // Jul 13th 17
moment().format('YYYY [escaped] YYYY');     // 2017 escaped 2017
moment().format();                          // 2017-07-13T23:18:05+04:30

```

and about the error you got,you most use like this:

```
 let monthStr: string = month;
 if ( month < 10) {
     monthStr = '0' + month;
 }

```
You could use something like this:

```
let pais:string = 'Ecuador';
let codigo:number = 593;
let opcionUno:string = this.pais + this.number
let opcionDos:string = this.pais.concat(this.number);

```