[36] Results

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 : Loop each day of the current month example

golang loop-date number-of-days-in-month


You need to get the current month, find out the number of days in the month programmatically and loop….... read more

Golang : Compare files modify date example

golang last-modify-date compare-files-date time-date


You're writing a game that will create multiple save files and you want to compare the save game files….... read more

Golang : Change date format to yyyy-mm-dd

golang date-format long-form-date short-form-date

Problem :

Your Golang program is producing date in long form that look like this :

2015-08-11 17:21:52.776537624 +0800 MYT

.... read more

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

Cash Flow : 50 days to pay your credit card debt

cash-flow 50-days credit-cards statement-date due-date

In running a business, the most important keyword is "cash flow". A business without healthy cash flow, is just like….... read more

Golang : Check if integer is power of four example

golang math-pow power-of


You need to test if a given integer is a power of 4. For example, if given number =….... read more

Golang : Date and Time formatting

golang date time timestamp

Our civilizations won't progress till this stage without proper understanding, parsing and organising our lives base on date and time.….... read more