+ Reply to Thread
Results 1 to 10 of 10

Problem with date

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Problem with date

    Hi to all
    I use Excel 2003 and i want your help in 2 diff things
    1)
    I want the current date in format "yyyymmdd" without change the format of the cell

    I try this
    = "PCL" & TEXT(TODAY();"yyyymmdd") & MID(C16; 13; 15)
    and i take this
    PCLyyyymmdd590912854457747
    The reason i use ; and not , is because i use Greek Office

    2)
    I want in a cell this format
    2018-06-01T17:48:14.622

    PS:I don't want to use vba code...

    Thanks and regards.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Problem with date

    Try...

    = "PCL " & TEXT(TODAY();"yyyy-mm-dd") & " "&MID(C16;13;15)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: Problem with date

    First of all thank you very much jeffreybrown

    The point is im facing the same problem if i use only
    =TEXT(TODAY();"yyyymmdd")
    I receive
    yyyymmdd

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Problem with date

    Yes, because that is the format you asked for. If you want the "-" in-between, then use the format I posted.

  5. #5
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: Problem with date

    I think I did not correctly explain my problem and I'm sorry for this

    i use this to take back 20160601 instead of this i take yyyymmdd
    They did not show the date at all show only this yyyymmdd

    Problem_With_Date.png
    Last edited by Vagelisr; 06-01-2018 at 11:26 AM.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Problem with date

    I'm sorry. I'm a little confused as to your requirement. Can you attack a small sample worksheet with what you desire.

  7. #7
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: Problem with date

    I hope this help you
    Attached Files Attached Files

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Problem with date

    That Excel file would not open for me. Either try again or can you explain a little clearer what you are trying to make happen?

    Using >> =TEXT(TODAY();"yyyymmdd")

    I get >> 20180601 >> that is today's date and in the format the formula asks for.

    If you want >> 2018-06-01 >> then you use >> =TEXT(TODAY();"yyyy-mm-dd")

    I have no idea what and where you are getting this >> 20160601 >> when you are referencing Today()

  9. #9
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: Problem with date

    Hi and sorry for the delay.

    Finally the code don't work because my office is Greek.
    Sorry for the confusion jeffreybrown.....
    When i change the yyyymmdd with the assosiate Greek characters (εεεεμμηη) in my case work perfect.

    Thans again

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Problem with date

    Awesome. Glad you now have your solution.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Problem with Date column reverting to the same date
    By jennah63 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2018, 01:36 AM
  2. Advanced filter by date range, international date format problem
    By Senator685 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 08:16 AM
  3. [SOLVED] Problem with engaging an ERROR based on a date being <= another date
    By lsargent in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-28-2012, 01:24 AM
  4. Date Problem
    By johncon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-29-2008, 06:52 AM
  5. 3 columns; date and two data, problem is sorting and calculating with respect to date
    By phosphorescence in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2008, 04:21 PM
  6. [SOLVED] Date Problem's
    By bperks in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  7. [SOLVED] Date Problem's
    By bperks in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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