+ Reply to Thread
Results 1 to 2 of 2

Date Formatting

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    1

    Date Formatting

    Hello,
    I have an excel cell each for StartDate and EndDate with the format dd/MM/yyyy. After the user enters these dates I am required to create a cell for each day from the start date to end date entered by the user.
    For some reason the format on each of these cells is getting changed to MM/dd/yyyy from dd/MM/yyyy

    For example:
    StartDate 15/01/2015
    EndDate 17/01/2015

    Cells created: 01/15/2015, 01/16/2015, 01/17/2015

    Expected: 15/01/2015, 16/01/2015, 17/01/2015

    Code:
    Please Login or Register  to view this content.
    Please advise!
    Thanks!
    Last edited by amzeek; 08-13-2015 at 03:47 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Date Formatting

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ 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. [SOLVED] formatting for short date displays excel date number
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-14-2014, 11:56 PM
  2. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  3. Replies: 3
    Last Post: 11-23-2013, 06:21 AM
  4. Replies: 2
    Last Post: 09-19-2013, 10:34 AM
  5. Replies: 5
    Last Post: 08-22-2012, 05:06 PM
  6. Replies: 3
    Last Post: 07-11-2012, 10:03 AM
  7. Replies: 3
    Last Post: 08-18-2010, 12:58 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