<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Elixir Phoenix on Brian P. Hogan</title><link>https://bphogan.com/categories/elixir-phoenix/</link><description>Recent content in Elixir Phoenix on Brian P. Hogan</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sat, 03 Dec 2016 17:00:00 +0000</lastBuildDate><atom:link href="https://bphogan.com/categories/elixir-phoenix/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Format Dates in a Phoenix Application</title><link>https://bphogan.com/tutorials/elixir/how_to_format_dates_in_phoenix/</link><pubDate>Sat, 03 Dec 2016 17:00:00 +0000</pubDate><guid>https://bphogan.com/tutorials/elixir/how_to_format_dates_in_phoenix/</guid><description>Formatting dates in Phoenix isn&amp;rsquo;t as straightforward as it is in other frameworks. There isn&amp;rsquo;t a built-in method to do strftime, but by using the timex library, we can add it in easily. Let&amp;rsquo;s look at how.
Creating a Sample Application First, let&amp;rsquo;s create a new Phoenix application called cookbook which we&amp;rsquo;ll use to tinker around with dates.
$ mix phoenix.new cookbook Then change to the cookbook directory, create the development database, and generate a new table of recipes:</description></item></channel></rss>