+ Reply to Thread
Results 1 to 3 of 3

convert date and time to different format

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    21

    convert date and time to different format

    Hi All,

    Can anyone please advise on a formula which would format the date and time.

    Current string are like below:
    Please Login or Register  to view this content.
    The first field in date is the month and is 1 or digits and the same applies to the time hour field which is always labelled am or pm.

    I would like this to be:
    Please Login or Register  to view this content.
    Just for clarity the source field is m/d/yy h:mm and I would like it to be dd/mm/yyyy hh:mm

    Thanks in advance.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: convert date and time to different format

    Try this ...

    =DATE(2000+MID(A1,FIND(" ",A1)-2,2),LEFT(A1,FIND("/",A1)-1),MID(A1,FIND("/",A1)+1,FIND(" ",A1)-4-FIND("/",A1)))
    +MID(A1,FIND(" ",A1)+1,5)+0.5*(RIGHT(A1,2)="PM")

  3. #3
    Registered User
    Join Date
    09-17-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    21

    Re: convert date and time to different format

    Beautiful.....thank you so much

+ 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 to Date - Format problems
    By eugbed in forum Excel General
    Replies: 5
    Last Post: 05-03-2015, 05:31 PM
  2. Formula > Convert date to time format
    By Ransom12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-26-2014, 04:18 PM
  3. convert number to date time format
    By sensation in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2013, 05:16 AM
  4. 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
  5. [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
  6. Convert text to date time format
    By nnaidoo1972 in forum Excel General
    Replies: 1
    Last Post: 11-11-2011, 05:18 AM
  7. convert Date Time format
    By yourskarthik in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-30-2009, 01:29 PM

Tags for this Thread

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