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.
|Date: the date or cell you want to convert to a date as text.|
|Date_format: the date format you want to convert to.|
|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|
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
Convert date to month only
Convert date to day only
Convert date to year and month
Convert date to year and day
Convert date to month and day/strong>
Press Enter key to get a serial number in text format.
TEXT function: convert a number to a text in a specific format.
- 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.
- 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.