Hope this one is simple:

In some settings i get the desired date notation as: `d.m.Y`.
When working with some XML stuff i need the notation as following: `%d.%m.%Y`.

Is there a way to convert those into each other? I dont need to convert dates into different notations but the notation itself. 

OK. So here an example:

```
$dateformat = $config->dateformat; // "d.m.Y"
...
$form->setFieldAttribute('date', 'format', '%d.%m.%Y');  // this is where i cannot use $config->dateformat

```

The notation in the settings can change and that needs to reflect on the other notation. Is there some function for that or do i need to code something?

Thanks!