+ Reply to Thread
Results 1 to 3 of 3

Can I use yyyy-mm-dd h:mm:ss date/time format to calculate the duration form two date

  1. #1
    Registered User
    Join Date
    02-03-2023
    Location
    Hillcrest, South Africa
    MS-Off Ver
    Office 365
    Posts
    1

    Can I use yyyy-mm-dd h:mm:ss date/time format to calculate the duration form two date

    Can I use "yyyy-mm-dd h:mm:ss" date/time format to calculate the duration form two dates

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Can I use yyyy-mm-dd h:mm:ss date/time format to calculate the duration form two date

    A date is a number representing the number of days starting on 01/01/1900 and a time is a decimal number representing a part of a day. So, if you subtract two date/time values you should end up with something that gives you the difference.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Can I use yyyy-mm-dd h:mm:ss date/time format to calculate the duration form two date

    Suppose your start time a2 & end time b2
    In C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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] need to format date time and calculate duration
    By esaji in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-14-2021, 02:05 PM
  2. Google Sheets: Calculate End Date & Time from Start Date & Time for given Duration
    By vigneshslm in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 02-13-2021, 09:54 PM
  3. Calculate End Date & Time from Start Date & Time for given Duration
    By vigneshslm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2021, 12:17 PM
  4. Update Date Field From User Form in dd/mm/yyyy format instead of mm/dd/yyyy format
    By LUCKY92 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-18-2020, 12:11 PM
  5. Replies: 5
    Last Post: 02-26-2017, 01:12 PM
  6. Replies: 0
    Last Post: 10-17-2013, 03:09 PM
  7. [SOLVED] Date format of yyyy-mm-dd for field entry in user form
    By ajolin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2012, 02:22 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