Skip to content

Database.Guide

dates

Fix: “Unknown table ‘locales’ in information_schema” in MariaDB

June 19, 2021 by Ian

If you get the Unknown table 'locales' in information_schema error in MariaDB, it’s probably because you haven’t installed the LOCALES plugin yet.

You need to install the LOCALES plugin before you try to query this table.

Read more

Categories MariaDB Tags dates, errors, how to

11 Functions to Get the Day, Month, and Year from a Date in MariaDB

June 18, 2021 by Ian

MariaDB includes many functions for working with dates. Some of these extract certain parts from such dates and return them as a string or integer.

Below are 11 functions that you can use to return various date parts in MariaDB.

Read more

Categories MariaDB Tags date format, dates, how to

8 Ways to Add Microseconds to a Datetime Value in MariaDB

June 12, 2021 by Ian

If you need to add one or more microseconds to a datetime value in MariaDB, here are 8 options to consider.

Read more

Categories MariaDB Tags dates, how to

3 Ways to Convert a Date to a String in MongoDB

June 5, 2021 by Ian

MongoDB has a Date BSON type that allows you to store dates as dates.

You can also store dates as strings, if that’s what you need.

Taking it a step further, you can also convert a Date to a string.

This article presents three ways to convert a Date to a string in MongoDB.

Read more

Categories MongoDB Tags convert, date format, dates, how to, string

Convert a Month Name to the Month Number in SQL Server (T-SQL)

June 3, 2021 by Ian

In SQL Server, you can use the MONTH() function to convert a month name to its corresponding number.

Read more

Categories SQL Server Tags date format, dates, how to, mssql, t-sql

3 Ways to Extract the Year from a Date in SQL Server (T-SQL)

May 30, 2021 by Ian

There are several ways to return the year from a date in SQL Server. Here are three (or is it four?).

Read more

Categories SQL Server Tags dates, how to, mssql, t-sql

8 Ways to Add Seconds to a Datetime Value in MariaDB

May 26, 2021 by Ian

If you need to add one or more seconds to a datetime value in MariaDB, here are 8 options to consider.

Read more

Categories MariaDB Tags dates, how to

3 Ways to Get the Month Name from a Date in MariaDB

June 19, 2021May 22, 2021 by Ian

Here are three ways to return the month name from a date in MariaDB.

Read more

Categories MariaDB Tags date format, dates, how to

Subtract a Month from a Date in MariaDB

May 21, 2021 by Ian

MariaDB provides several ways to perform arithmetic on dates. This includes adding or subtracting a month (or many months) from a given date.

Here’s an example of subtracting a month from a date in MariaDB.

Read more

Categories MariaDB Tags dates, how to

How MONTHNAME() Works in MariaDB

May 14, 2021 by Ian

In MariaDB, MONTHNAME() is a built-in date and time function that returns the name of the month name for a given date.

It accepts one argument, which is the date you want to extract the month name from.

Read more

Categories MariaDB Tags date format, date functions, dates, what is
Older posts
Newer posts
← Previous Page1 … Page27 Page28 Page29 … Page53 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved