parsing - How can I parse this date in Golang? -


i having trouble in parsing date ("apr 19, 3:15p et"), can please me in regard?

this code have written.

d, err := time.parse("jan 02, 3:04p et", date) 

thanks in advance.

the 3 letter month constant jan

date := "apr 19, 3:15p et" d, err := time.parse("jan 02, 3:04p et", date) 

http://play.golang.org/p/lkeqotc1hd


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -