Created
May 15, 2019 10:19
-
-
Save seungjin/75730ef2f4783b6ef2207fdc6afaf45b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Datemizer do | |
def shorten_to_date(datetime) do | |
datetime |> String.split(",") |> hd | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment