# Formatting of Date on Remote-Server

**URL:** <https://www.ruby-forum.com/t/formatting-of-date-on-remote-server/152251>\
**Category:** Rails\
**Created:** [October 31, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/formatting-of-date-on-remote-server/152251 "2008-10-31T20:00:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![panatura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@panatura](https://www.ruby-forum.com/u/panatura)\
**Post date:** [October 31, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/formatting-of-date-on-remote-server/152251/1 "2008-10-31T20:00:09Z")

</div>

Hi there,

let’s first introduce myself as a new member 😉 My Name is Mario. I’m  
from Germany and producing the site [www.panatura.de](http://www.panatura.de).

As I just released the site these days I found an error in different  
date formatting on the remote MySQL-Server. Please have a look and  
perhaps you might give me an advice:

Easy as is, the View: \<%= @page.updated\_at.strftime(“%d.%m%.%Y”) %\>

On my local development site it looks like this :

formatted → 30.10.2008  
unformatted → Thu Oct 30 23:50:52 +0100 2008

Through the remote MySQL on the website it looks like this :

formatted → 30.10%2008  
unformatted → 2008-10-31 04:46:44 UTC

Guess, you see the question 😉 Where does that “%” result from???

Any answer will be appreciated 😉  
Greetings

Mario

---

<div class="post-metadata">

**Author:** ![panatura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@panatura](https://www.ruby-forum.com/u/panatura)\
**Post date:** [October 31, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/formatting-of-date-on-remote-server/152251/2 "2008-10-31T20:03:32Z")

</div>

I’m pretty sure you’re syntax is wrong…

strftime("%d.%m%.%Y")

should be

strftime("%d.%m.%Y")

On Oct 31, 3:00 pm, Mario Peterscheck \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![panatura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@panatura](https://www.ruby-forum.com/u/panatura)\
**Post date:** [October 31, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/formatting-of-date-on-remote-server/152251/3 "2008-10-31T20:22:06Z")

</div>

sw0rdfish wrote:

Absolutely blaming! Too much code seen the last few weeks 🙂

That’s it - Thanks a hundred times!!!

Mario

---

<div class="post-metadata">

**Author:** ![panatura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@panatura](https://www.ruby-forum.com/u/panatura)\
**Post date:** [October 31, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/formatting-of-date-on-remote-server/152251/4 "2008-10-31T20:42:10Z")

</div>

no problem… I do it all the time… spent three days trouble  
shooting something cuz I spelt group; gruop

My last computer died the day I found that stupid mistake 😛

On Oct 31, 3:22 pm, Mario Peterscheck \<rails-mailing-l…@andreas-
