+ Reply to Thread
Results 1 to 6 of 6

Date extracrtion from timestamp

  1. #1
    Forum Contributor
    Join Date
    07-29-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    365
    Posts
    255

    Date extracrtion from timestamp

    I have used =int() here, but it only works for some of my dates,

    Q
    Attached Files Attached Files
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Date extracrtion from timestamp

    Your Date & Time Formatted as text so INT function don't work, maybe you need to change your date&time from
    8/31/18 14:38:07 to 31/8/2018 14:38:07

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Date extracrtion from timestamp

    Because the dates are M/DD/YY format and you're in Australia and your system is probably configured D/MM/YY you need a more complicated formula. Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If some of your dates are showing as values try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by gak67; 09-03-2018 at 12:23 AM.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Date extracrtion from timestamp

    Please Login or Register  to view this content.
    Ben Van Johnson

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Date extracrtion from timestamp

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.
    This will treat 9/03/18 as 9 March 2018 in Australia, not 3 September, which is what is intended.

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Date extracrtion from timestamp

    Try the following in B2:

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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: 2
    Last Post: 11-09-2016, 02:23 PM
  2. [SOLVED] VBA - Convert Date/Timestamp into American Date and Military Timestamp
    By ryanmorris in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-01-2015, 03:43 PM
  3. Timestamp date stays 12:00:00
    By Johfra in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-03-2014, 03:37 PM
  4. [SOLVED] Convert a cell with a timestamp in it to just the date to compare to another date
    By Tanyab in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2013, 05:41 AM
  5. Timestamp/Date Formula
    By mcmuney in forum Excel General
    Replies: 3
    Last Post: 09-14-2010, 06:35 PM
  6. Adding date timestamp
    By BigBlackMamba in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2010, 07:40 PM
  7. date without timestamp
    By r.vasikaran in forum Excel General
    Replies: 2
    Last Post: 05-13-2006, 07:10 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