[26] Results

Golang : Parse date string and convert to dd-mm-yyyy format

golang dd-mm-yyyy date-time convert-string-date

A reader enquired on how to use Golang to convert date string such as "28th nov 2016" or "nov….... read more


Golang : Convert date string to variants of time.Time type examples

golang date convert-timestamp format-date

Here are few examples on how to convert a given date of string type to equivalent time.Time type. Most newbies….... read more


Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date

golang time-different future-date past-date

Let's go back into history for this tutorial's sake. Somehow you have invented a time traveling device powered by Golang….... 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 : Join lines with certain suffix symbol example

golang suffix join-lines raw-text-data-files

For this tutorial,we will learn how to join lines of text into a string and also explore the option to….... read more


Elastic Search : Mapping date format and sort by date

elasticsearch sort date mapping

While working on the job board for Socketloop.com recently, I need to sort the Elastic Search result based….... 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 : How to execute code at certain day, hour and minute?

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

Problem:

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


Advertisement

Advertisement