+ Reply to Thread
Results 1 to 3 of 3

Convert a date/time format to a date format

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    NEW HAMPSHIRE
    MS-Off Ver
    Excel 2007
    Posts
    1

    Convert a date/time format to a date format

    Excel 2007 - 10/14/2011 23:59 PM

    I'm having a tough time converting a date/time (MMDDYYYY HHMM PM) to a regular date MMDDYYYY only.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Convert a date/time format to a date format

    would this work? put this in B1

    Please Login or Register  to view this content.
    EDIT: This will only work if the date/time in A1 is a real excel date/time...
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Convert a date/time format to a date format

    welcome to the forum, Littleton. to know if it's a an Excel date recognised by Excel, go to the cell & press CTRL + SHIFT + ~
    you should see a number appear. if it remains the same, it's a text. press undo to revert

    if it's a real date, it depends on whether you want to present it visually or really remove the time. for the former, right-click the cell & format cells. custom:
    MMDDYYYY
    for the latter:
    =INT(A1)
    that will remove the time

    if it's not a real date, there are complications. is your date always in MM/DD/YY? like is 1st Feb 2013 shown as 01/02/2013 or 1/2/2013. if it's the former, it's:
    =DATE(MID(A1,7,4),LEFT(A1,2),MID(A1,4,2))
    then format cells

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  2. [SOLVED] How do I convert imported date/time data to date/time format?
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 07:47 AM
  3. Need Formula/VBA Code to convert date in String Format to Normal Date format
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2012, 04:54 AM
  4. Replies: 5
    Last Post: 10-18-2010, 05:54 AM
  5. convert Date Time format
    By yourskarthik in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-30-2009, 01:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1