+ Reply to Thread
Results 1 to 5 of 5

How to define a date Custom Format to show first 2 letters of the day's name

  1. #1
    Registered User
    Join Date
    02-04-2013
    Location
    Quito, Ecuador
    MS-Off Ver
    Office365
    Posts
    19

    How to define a date Custom Format to show first 2 letters of the day's name

    Hi all

    I am looking for a way to define a Custom Format to show the first 2 letters of the day's name. e.g. "Feb. 14, 2022" to be displayed as "Mo. 14 Feb 2022"

    Thank you for your support

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,145

    Re: How to define a date Custom Format to show first 2 letters of the day's name

    To show the letters requires ddd in the format string, and there are no functions allowed in custom formats, so the only way would be to use a formula in another cell, like

    =LEFT(TEXT(A2,"ddd"),2) & ". " & TEXT(A2, "dd mmm yyyy")
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,161

    Re: How to define a date Custom Format to show first 2 letters of the day's name

    One thing I would add is that Bernie's solution converts your date serial number to a text string. I agree with him that there is not a custom format code for "two character abbreviation of day of the week" (you can check for yourself here: https://support.microsoft.com/en-us/...rs=en-us&ad=us ). The decision for you as a programmer is deciding between showing the date in a specific format as a text string and storing the date as a date/time serial number. I feel like there are a lot more problems on this forum related to storing numbers as text than I see problems solved by storing a number as text. It will be up to you as the programmer to decide if, in your specific case, storing the number as text will really work for you.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    02-04-2013
    Location
    Quito, Ecuador
    MS-Off Ver
    Office365
    Posts
    19

    Re: How to define a date Custom Format to show first 2 letters of the day's name

    Thank you very much for your reply

  5. #5
    Registered User
    Join Date
    02-04-2013
    Location
    Quito, Ecuador
    MS-Off Ver
    Office365
    Posts
    19

    Re: How to define a date Custom Format to show first 2 letters of the day's name

    Thank you very much for your suggestion

+ 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: 1
    Last Post: 04-28-2021, 02:09 PM
  2. Custom Format with Numbers and Letters?
    By anon12398 in forum Excel General
    Replies: 9
    Last Post: 03-07-2019, 06:49 AM
  3. Define Font of Custom Date in Footer
    By IronMan79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 03:40 AM
  4. [SOLVED] Custom date format: How to show the months as just their first letter?
    By The_Snook in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-24-2012, 08:52 AM
  5. How to define date format in userform
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2010, 12:52 PM
  6. Excel custom format with letters and numbers
    By pdrodrig in forum Excel General
    Replies: 1
    Last Post: 06-11-2009, 08:08 AM
  7. [SOLVED] how do I custom format .0040 to show as 40 ?
    By rwtuning in forum Excel General
    Replies: 3
    Last Post: 06-18-2006, 06:45 PM

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