+ Reply to Thread
Results 1 to 5 of 5

Convert date and time format

  1. #1
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    53

    Convert date and time format

    Hello,

    I've been trying to automatically convert

    May 23, 2020 07:46 EDT

    to

    05/23/2020 07:46

    and I'm unable to do it, any help on this matter is appreciated, thanks.
    Attached Files Attached Files
    Last edited by mukuljain99; 05-23-2020 at 05:51 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Office 365 (Win 10 - Work) & Office 365 Subscription Insider (Win 10 - Home)
    Posts
    37,679

    Re: Convert date and time format

    It will depend on the nature of the workbook data.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    53

    Re: Convert date and time format

    attached workbook for reference

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Office 365 (Win 10 - Work) & Office 365 Subscription Insider (Win 10 - Home)
    Posts
    37,679

    Re: Convert date and time format

    This should work:

    =DATE(MID(A1,FIND(",",A1)+2,4),MONTH(DATEVALUE(LEFT(A1,FIND(" ",A1)-1)&" 1")),SUBSTITUTE(MID(A1,FIND(" ",A1)+1,2),",",""))+TIMEVALUE(MID(A1,FIND(":",A1)-2,5))

    Make sure you set the cell formatting to custom: dd/mm/yyyy hh:mm

  5. #5
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    53

    Re: Convert date and time format

    Solved, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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