# Reg-Ex date problem

**URL:** https://community.mp3tag.de/t/reg-ex-date-problem/12786
**Category:** Support
**Created:** [December 6, 2011, 11:33pm UTC](https://community.mp3tag.de/t/reg-ex-date-problem/12786 "2011-12-06T23:33:57Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [December 6, 2011, 11:45pm UTC](https://community.mp3tag.de/t/reg-ex-date-problem/12786/2 "2011-12-06T23:45:43Z")

</div>

Action: Format Value  
Field: DATEBACKUP  
Formatstring: %year%-$regexp(%date%,(\d\d)(\d\d),$2)-$regexp(%date%,(\d\d)(\d\d),$1)

the same result would be given by:  
Formatstring: %year%-$right(%date%,2)-$left(%date%,2)

---

_[View the full topic](https://community.mp3tag.de/t/reg-ex-date-problem/12786)._
