Versions in this module Expand all Collapse all v1 v1.1.2 Aug 15, 2018 Changes in this version + type TimeDate struct + Format string + func NewTimeDate(format, value string) (td TimeDate, err error) + func (t *TimeDate) UnmarshalJSON(data []byte) error + func (t TimeDate) IsNil() bool + func (t TimeDate) MarshalJSON() ([]byte, error) v1.1.1 May 2, 2015 Changes in this version + var DefaultDateFormat = "YYYY-MM-DD" + var DefaultDateTimeFormat = "YYYY-MM-DD hh:mm:ss" + var DefaultTimeFormat = "hh:mm:ss" + var Placeholder = []p + func Format(format string, date time.Time) string + func FormatDate(date time.Time) string + func FormatDateTime(date time.Time) string + func FormatTime(date time.Time) string + func Parse(format string, value string) (time.Time, error) + func ParseDate(value string) (time.Time, error) + func ParseDateTime(value string) (time.Time, error) + func ParseTime(value string) (time.Time, error)