+ Reply to Thread
Results 1 to 4 of 4

Get current date in yyyymmdd hh:mm:ss format?

  1. #1
    Registered User
    Join Date
    01-18-2010
    Location
    Nova Scotia, Canada
    MS-Off Ver
    Excel 2003
    Posts
    68

    Get current date in yyyymmdd hh:mm:ss format?

    Hi all, does anyone know if there's a command (or workaround) to get the current date/time in the format yyyymmdd hh:mm:ss?

    Thanks!
    Shawn

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Get current date in yyyymmdd hh:mm:ss format?

    See NOW() function

    You can use a Custom Format as you describe on the cell containing the function, or use the TEXT function if you prefer as a literal string.

    =TEXT(NOW(),"yyyymmdd hh:mm:ss")

  3. #3
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: Get current date in yyyymmdd hh:mm:ss format?

    Hello There

    if you put the formula =NOW()

    and the format the cell to custom format yyyymmdd hh:mm:ss

    that should work

    hope this helps

    Jim

  4. #4
    Registered User
    Join Date
    01-18-2010
    Location
    Nova Scotia, Canada
    MS-Off Ver
    Excel 2003
    Posts
    68

    Re: Get current date in yyyymmdd hh:mm:ss format?

    DonkeyOte ("DonQuixote"... cute!), that's perfect, just what I was looking for, thanks.

    Thanks too JimmyA!

    Cheers
    Shawn

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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