+ Reply to Thread
Results 1 to 4 of 4

time difference between PC and excel

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    time difference between PC and excel

    hello,

    In my macro I use the below format to get date and time. Though the time is the same as my PC time setting.I have few minutes of difference.

    Please Login or Register  to view this content.
    Many thanks,
    Graig

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: time difference between PC and excel

    Hi,

    You use wrong identifier for minute. You can see, you use the same "MM" identifier both for month [("DD-MM-YY")] and also minute [Format(Now, "MM")].

    The correct identifier for minute is N character, you can read them all here in microsoft site :
    https://msdn.microsoft.com/en-us/lib.../gg251755.aspx

    So, for your case, the right statement is :
    Please Login or Register  to view this content.

    Regards
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: time difference between PC and excel

    Gr8 Thanks!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: time difference between PC and excel

    Or just

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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. Excel Time Difference
    By zabuawad in forum Excel General
    Replies: 1
    Last Post: 09-30-2010, 06:47 AM
  2. Negative time should be allowed in Excel, eg time difference
    By Bengt-Inge Larsson in forum Excel General
    Replies: 2
    Last Post: 10-13-2005, 08:05 AM
  3. Difference between two Excel Date/Time Stamps
    By lnapier in forum Excel Formulas & Functions
    Replies: 51
    Last Post: 09-06-2005, 12:05 PM
  4. How can I use a time difference in a subsequent formula in Excel?
    By numberman37 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] How can I use a time difference in a subsequent formula in Excel?
    By numberman37 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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