[27] Results

Golang : Get month name from date example

golangget-year-month-day time-now-date


You have a date and you want to get the month name from the date. For example,10/10/2017 should give….... read more

Golang : How to get year, month and day?

golang year-month-day time-now-date

Problem :

You want to extract the year, month and day from today's date. How to do that?

Solution :

.... read more

Golang : How to execute code at certain day, hour and minute?

golang hour-minute-second year-month-day time-now-date


You want to execute certain code at a particular day, hour and minute only. Such as Monday, 10:30 AM.….... read more

Golang : Calculate elapsed years or months since a date

golang elapsed-time date year month

This is additional tutorial to our previous tutorial on how to calculate elasped run time. We will learn….... read more

Golang : Find age or leap age from date of birth example

golang date-of-birth month-to-integer leap-year-age

Alright, here is a simple tutorial on how to calculate a person's age by a given date of birth string.….... read more

Golang : How to determine if a year is leap year?

golang date leap-year

A leap year is a year with 366 days instead of 365 days. The algorithm to calculate if a year….... read more

Golang : http.Get example

golang http get

Grabbing content in raw HTML format is useful for crawling or parsing purpose. This short tutorial demonstrates how easy it….... read more

Golang : Get sub string example

golang get-sub-string

Getting sub string is a common task in extracting details from a larger set of information. Here is a quick….... read more