diff --git a/date_api/date_api.module b/date_api/date_api.module
index f686c1e..ac52fcd 100644
--- a/date_api/date_api.module
+++ b/date_api/date_api.module
@@ -2138,9 +2138,6 @@ function date_limit_format($format, $granularity) {
   $format = trim(preg_replace($regex, array(), $format));
   // Remove orphaned punctuation at the beginning of the string.
   $format = preg_replace('`^([\-/\.,:\'])`', '', $format);
-  // Remove orphaned punctuation at the end of the string.
-  $format = preg_replace('([\-/\.,:\']$)', '', $format);
-  $format = preg_replace('(\\$)', '', $format);
 
   // Trim any whitespace from the result.
   $format = trim($format);
