How to split a date from String by using slenium...? i trie with below way, but , i am not able to store : The client start date is 13/10/2018.

In above string  i want to keep date in separate varible. 

    String[] effectiveDateText=driver.findElement(By.xpath(xpath)).getText().split(" ");
			
			for(int i=0;i<effectiveDateText.length;i++){
				String effectiveDate=effectiveDateText.length-1;
			}
