<p>What's the quickest way to convert a date in one format, say </p>

<blockquote>
  <p>2008-06-01</p>
</blockquote>

<p>to a date in another format, say </p>

<blockquote>
  <p>Sun 1st June 2008</p>
</blockquote>

<p>The important bit is actually the 'Sun' because depending on the dayname, I may need to fiddle other things around - in a non-deterministic fashion. I'm running GNU bash, version <code>3.2.17(1)-release (i386-apple-darwin9.0)</code>.</p>

<p>[Background: The reason that I want to do it from the command line, is that what I really want is to write it into a TextMate command...  It's an annoying task I have to do all the time in textMate.]</p>

```
```
date -d yyyy-mm-dd
```
```
If you want more control over formatting, you can also add it like this:
```
```
date -d yyyy-mm-dd +%a
```
```
to just get the Sun part that you say you want.