[26] Results

PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)

php date timestamp strtotime

Problem :

Need to convert a date string in PHP before storing the date into database(MariaDB/MySQL). The field in table….... 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 : 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


Golang : Calculate future date with time.Add() function

golang time-different future-date

Problem :

You need to calculate future dates by number of days. This can be use in calculating expiring dates….... read more


Advertisement