Skip to content
/ dates Public

Quick date formatting based on SQL datetime standards

Notifications You must be signed in to change notification settings

brydavis/dates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dates

Quick date formatting based on SQL datetime standards.

package main

import (
	"fmt"
	d "github.com/brydavis/dates"
)

func main() {
	t1 := "7/21/1980 20:07:34.830"
	t2 := d.Convert(t1, "1/2/2006 15:04:05.000", 110)
	fmt.Println(t2) // 1980-07-21
}



© 2016 MIT License

About

Quick date formatting based on SQL datetime standards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages