Tagged: DateTime

How to convert a date format in PHP - Clue Mediator

How to convert a date format in PHP

Today, we’ll discuss how to convert a date format in PHP. For example if we have date in YYYY-MM-DD format and need to convert it to DD-MM-YYYY format. Using built-in...

React time picker - Clue Mediator

How to implement time picker in React

Today we’ll show you how to implement time picker in React. We have written an article where we showed you how to add DateTimePicker in ReactJS. In this article we...

Calculate age in years using JavaScript - Clue Mediator

Calculate age in years using JavaScript

In this short article, we will show you how to calculate age in years using JavaScript. We’ll learn how to calculate the user’s age from their date of birth and...

Sort an array by Date in JavaScript - Clue Mediator

Sort an array by Date in JavaScript

In this article, we’ll show you how to sort an array by date in JavaScript. When you are working with an array of objects that contains a date field and...

Date Range Picker in React - Clue Mediator

Date Range Picker in React

Today we’ll show you how to implement date range picker in React. Sometimes you need to implement DateRangePicker in booking sites, reporting sites and at many more places. So here...

Time from now using Moment JS - Clue Mediator

Time from now using Moment JS

Manymore developers are struggling to display time from now such as days ago, weeks ago, in N months, months/years ago, etc in JavaScript therefore today we’ll come with a new...