+ Reply to Thread
Results 1 to 4 of 4

Swapping symbol "." for "/" without changing the date format

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    27

    Swapping symbol "." for "/" without changing the date format

    Heya,

    I'm downloading some data from the system and I need to change the formatting from dd.mm.yyyy (downloaded as text) to dd/mm/yyyy (formatted as date).

    I'm using code as below, but for some reason it's swapping days and months around (dd.mm.yyyy becomes mm/dd/yyyy)

    Is there any way to do it?

    Please Login or Register  to view this content.
    Thanks,
    Al
    Last edited by alxes; 12-12-2017 at 11:28 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,056

    Re: Swapping symbol "." for "/" without changing the date format

    If you're OK with a formula:

    =SUBSTITUTE(A1,".","/")+0

    and format cells as date.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Swapping symbol "." for "/" without changing the date format

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    07-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Swapping symbol "." for "/" without changing the date format

    That's great guys. Instant solutions.

    Al

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Replies: 1
    Last Post: 01-22-2016, 09:21 AM
  4. Date format of just "st" "nd" "rd" and "th" with text included
    By notrandom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2013, 05:45 PM
  5. Changing format of column from "general" to "currency"
    By Old Car in forum Excel General
    Replies: 1
    Last Post: 04-29-2005, 05:06 AM
  6. Changing format of column from "general" to "currency"
    By Old Car in forum Excel General
    Replies: 1
    Last Post: 04-29-2005, 05:06 AM
  7. Changing format of column from "general" to "currency"
    By Old Car in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2005, 05:06 AM

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