Cldr.Format.Date

Date Formatting

format : Length -> Locale -> Date -> String

Formats a Date using the specified Length and Locale.

import Cldr.Format.Length exposing (Length(..))
import Cldr.Locale exposing (en)
import Date
import Time exposing (Month(..))

format Short en (Date.fromCalendarDate 2000 Jan 1)
--> "1/1/00"