How to extract date from date and time format on excel. eg. 08/04/2017 08.59 PM in the format (dd/mm/yyyy) UK format to date only in another cell

I want to extract date only from a system given date and time stamp on excel.

Eg.

08/04/2017 08.59 PM = 08/04/2017

The above is in dd/mm/yyyy format. need help.
arunav ghoshInformation processing specialistAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

als315Commented:
Is source cell text or date field?
Sample workbook will be helpful
If it is text, you can try:
=DATE(MID(A1,7,4), MID(A1,4,2), LEFT(A1,2))
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arunav ghoshInformation processing specialistAuthor Commented:
Source is Date field, but your solution worked,  Thank you :)
0
arunav ghoshInformation processing specialistAuthor Commented:
Great solution on dates so far after 3 days of google search on UK and US dates conversation. :)
0
Rob HensonFinance AnalystCommented:
If that solution worked, then the field has to be text. If it were a true date then the MID function would not have worked.

Dates and time are held in excel as a serial number.

The date is number of days since the start of Excel's internal calendar, day 1 is 01 January 1900 so today's date (18 Dec 2017) would be 43087. Doing a MID function on that as per the above would give a number of 707943 which when formatted as a date shows 12 April 3838.

Time is then stored as a fraction of a day, eg 6:00am is 0.25 ie 1/4 through the day, 12:00 midday is 0.5 ie halfway through the day.

For a field which is truly a date, the following would work:

=INT(A1)

The INT function takes the integer of the value. Based on what I mention above the Integer part of a serial number representing a date and time is just the date element.

Likewise, to strip just the time from a date and time value you can use:

=MOD(A1,1)   the MOD function takes the remainder of a value when divided by the factor specified. Therefore dividing a value by 1 leaves just the decimal part of the value which in a date and time value is just the time element.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.