Excel Formula: Convert Date to Month Year Day
In Excel, you can format the date cell as multiple types of date formats, but in some cases, you want to convert the date to only month, year, day or monthyear, daymonth, or year day in text format. Here in this tutorial, it provides a general formula to handle this job in Excel.
If you want to follow along with this tutorial, please download the example spreadsheet.
Generic formula:
TEXT(date,”date_format”) |
Arguments
Date: the date or cell you want to convert to a date as text. |
Date_format: the date format you want to convert to. |
Date Forat
Date Format | Arguments |
Convert date to year only | yyyy |
Convert date to month only | mm |
Convert date to day only | dd |
Convert date to year month | yyyymm |
Convert date to year day | yyyydd |
Convert date to month day | mmdd |
Return Value
The formula returns a serial number in text format.
How this formula work
In cell B3, the date needed to be converted to year, month, day or other date types in text format, please apply one of below formulas:
Convert date to year only
=TEXT(B3,"yyyy") |
Convert date to month only
=TEXT(B3,"mm") |
Convert date to day only
=TEXT(B3,"dd") |
Convert date to year and month
=TEXT(B3,"yyyymm") |
Convert date to year and day
=TEXT(B3,"yyyydd") |
Convert date to month and day/strong>
=TEXT(B3,"mmdd") |
Press Enter key to get a serial number in text format.
Explanation
TEXT function: convert a number to a text in a specific format.
Relative Formulas
- Convert date to Julian
Sometimes, you need to convert the standard date to the Julian date in Excel, here this article introduces a formula which combines the TEXT, YEAR and DATE functions to solve this job. - Convert date string to datetime
Sometimes, while you import or paste some datetime data from other devices to Excel, the datetimes maybe not be recognized as proper dates... - Calculate Days Remaining Between Two Dates
Here, this tutorial provides a formula to quickly calculate the left days between two dates. - Calculate Hours Minutes Seconds Between Two Times
Here in this tutorial, it introduces some formulas to quickly present the time difference result as single time unit.
Relative Functions
- Excel IF Function
Test for specified conditions, then returns the corresponding values - Excel VALUE Function
Convert text to number. - Excel MONTH Function
The MONTH is used to get the month as integer number (1 to 12) from date. - Excel DAY Function
DAY function gets the day as a number (1 to 31) from a date - Excel YEAR Function
The YEAR function returns the year based on the given date in a 4-digit serial number format.
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...
Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.