> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/d/date_format.md).

# Date format

```ruby
var time = Time.local
say time.ctime
say time.strftime("%Y-%m-%d")
say time.strftime("%A, %B %d, %Y")
```

#### Output:

```
Fri Oct 17 12:57:02 2014
2014-10-17
Friday, October 17, 2014
```
