+ Reply to Thread
Results 1 to 3 of 3

How to format a date pulled from a cell?

  1. #1
    Registered User
    Join Date
    01-12-2014
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    77

    How to format a date pulled from a cell?

    Hi,

    cell A1 of my sheet1 contains a date and i am using this cell value to insert some text in cell D2 of sheet2.

    I am using following line in vba code
    Please Login or Register  to view this content.
    what change should i make in the code to get the date format in DD/MM/YYYY in cell D2 of sheet2, irrespective of the date format in sheet1?

    Thank you!

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: How to format a date pulled from a cell?

    format("01/01/1900","dd/mm/yyyy")

  3. #3
    Registered User
    Join Date
    01-12-2014
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    77

    Re: How to format a date pulled from a cell?

    Thank you!

+ 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: 3
    Last Post: 11-23-2013, 06:21 AM
  2. [SOLVED] Auto format excel data being pulled into access.
    By Ghostwheel in forum Access Tables & Databases
    Replies: 2
    Last Post: 12-11-2012, 09:04 AM
  3. Replies: 1
    Last Post: 11-01-2012, 10:37 AM
  4. Replies: 2
    Last Post: 10-02-2010, 04:41 AM
  5. [SOLVED] Line information pulled out base on date
    By FGOMEZ in forum Excel General
    Replies: 1
    Last Post: 04-06-2006, 09:20 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