Create your own Faker provider for generating fake data

Code
<?php

use Faker\Provider\Base;
use 
Faker\Factory;

class 
IntlDateProvider extends Base
{
    private 
$formatter;
    
    public function 
__construct($generator$locale)
    {
        
parent::__construct($generator);
        
$this->formatter = new IntlDateFormatter(
            (string) 
$locale,
            
IntlDateFormatter::MEDIUM,
            
IntlDateFormatter::MEDIUM
        
);
    }
    
    public function 
intldate()
    {
        
$date $this->generator->dateTime;
        
        return 
$this->formatter->format($date);
    }
}

$faker Factory::create();
$faker->addProvider(new IntlDateProvider($faker'de'));

dump(
    
$faker->intldate,
    
$faker->intldate,
    
$faker->intldate
);
Result
"28.01.1990, 07:57:14"

"02.08.2012, 17:51:19"

"01.02.2008, 20:37:22"