Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Date Field - all in CAPS?

  1. #1
    100 Club cholmes's Avatar
    Join Date
    2003-02
    Location
    Omaha, NE
    Posts
    198
    Login to Give a bone
    0

    Default Date Field - all in CAPS?

    I am trying to set up a field that shows the plot date (or any date really for that matter). I can get it to work just fine, with one exception - as req'd by the client standard, the date should be in this format 12 APR 06

    I can get this to show up in this format no problem using dd MMM yy, except that I cannot get the month to come in in all caps, it defaults to Apr. I thought maybe the upper case M would do the trick, but that's not the case, as the lower case is for minutes.

    Does anyone know of another way to get this to work? I basically just need to change the formatting to be all caps, and I've tried several things with no luck. This is in Acad 2005.
    Thanks!

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Quote Originally Posted by cholmes
    I am trying to set up a field that shows the plot date (or any date really for that matter). I can get it to work just fine, with one exception - as req'd by the client standard, the date should be in this format 12 APR 06
    Use a DIESEL statement like this
    Code:
    $(upper, $(edtime, 0, DD MON YY))
    R.K. McSwain | CAD Panacea |

  3. #3
    100 Club cholmes's Avatar
    Join Date
    2003-02
    Location
    Omaha, NE
    Posts
    198
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Cool, I figured it had to be some diesel statement.

    Now, what I actually need is one that will update when plotting, so that it shows the plot date.
    Will this one do that? Or is this just showing the current date? I haven't really used diesel to understand what this is actuall doing.

    Thanks!
    Last edited by cholmes; 2006-04-12 at 03:45 PM.

  4. #4
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Quote Originally Posted by cholmes
    Cool, I figured it had to be some diesel statement.

    Now, what I actually need is one that will update when plotting, so that it shows the plot date.
    Will this one do that? Or is this just showing the current date?

    Thanks!
    According to HELP, it will

    Code:
    
    Returns a formatted date and time based on a given picture.
    
    $(edtime, time, picture)
    
    Edits the AutoCAD Julian date given by time (obtained, for example, from $(getvar,date) according to the given picture). 
    R.K. McSwain | CAD Panacea |

  5. #5
    AUGI Addict Maverick91's Avatar
    Join Date
    2000-12
    Location
    Grand Prairie, Texas, USA
    Posts
    1,324
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Quote Originally Posted by rkmcswain
    Use a DIESEL statement like this
    Code:
    $(upper, $(edtime, 0, DD MON YY))
    Today I ran into the same problem. Thanks for the assist.

  6. #6
    AUGI Addict Maverick91's Avatar
    Join Date
    2000-12
    Location
    Grand Prairie, Texas, USA
    Posts
    1,324
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Quote Originally Posted by Maverick91
    Today I ran into the same problem. Thanks for the assist.
    Okay, I've run into one problem: How do I get the date to appear as MONTH DATE, YEAR? I need to show the month first, followed by the date with a comma after the date, then the year. I'm using this DIESEL expression, but I don't know how to modify it.

    $(upper, $(edtime, 0, DD MON YY))

  7. #7
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Quote Originally Posted by Maverick91
    Okay, I've run into one problem: How do I get the date to appear as MONTH DATE, YEAR? I need to show the month first, followed by the date with a comma after the date, then the year. I'm using this DIESEL expression, but I don't know how to modify it.

    $(upper, $(edtime, 0, DD MON YY))
    Doug, the DIESEL syntax is documented in the Customization Guide.

    In the statement above:
    DD= Day with leading zero
    MON = Three letter abbreviation for the month
    YY = last two numbers of year

    So you could rearrange this as MON DD, YY or make use of other formatting strings as defined in the CG.
    R.K. McSwain | CAD Panacea |

  8. #8
    AUGI Addict Maverick91's Avatar
    Join Date
    2000-12
    Location
    Grand Prairie, Texas, USA
    Posts
    1,324
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Quote Originally Posted by rkmcswain
    Doug, the DIESEL syntax is documented in the Customization Guide.

    In the statement above:
    DD= Day with leading zero
    MON = Three letter abbreviation for the month
    YY = last two numbers of year

    So you could rearrange this as MON DD, YY or make use of other formatting strings as defined in the CG.
    No joy. I changed the expression (should have clarified that) to MONTH DAY YEAR, and got AUGUST 17 2006. Cool. But I need a comma after the date. If I put a comma in the expression, as in MONTH DD, YYYY, all I get is AUGUST 17

  9. #9
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Quote Originally Posted by Maverick91
    No joy. I changed the expression (should have clarified that) to MONTH DAY YEAR, and got AUGUST 17 2006. Cool. But I need a comma after the date. If I put a comma in the expression, as in MONTH DD, YYYY, all I get is AUGUST 17
    Looks like the $(upper...) function doesn't like the comma.

    Try this instead.

    $(upper,$(edtime, 0, MONTH DD))$(edtime, 0,"," YYYY)
    R.K. McSwain | CAD Panacea |

  10. #10
    AUGI Addict Maverick91's Avatar
    Join Date
    2000-12
    Location
    Grand Prairie, Texas, USA
    Posts
    1,324
    Login to Give a bone
    0

    Default Re: Date Field - all in CAPS?

    Quote Originally Posted by rkmcswain
    Looks like the $(upper...) function doesn't like the comma.

    Try this instead.

    $(upper,$(edtime, 0, MONTH DD))$(edtime, 0,"," YYYY)
    it's a beautiful thing....

Page 1 of 2 12 LastLast

Similar Threads

  1. External References Date in Field
    By ivk in forum AutoLISP
    Replies: 6
    Last Post: 2015-08-06, 04:11 PM
  2. Plot Date Field
    By kberger in forum AutoCAD General
    Replies: 2
    Last Post: 2009-05-27, 08:07 PM
  3. Date - Field
    By rhayes.99001 in forum ACA General
    Replies: 8
    Last Post: 2007-09-06, 02:18 PM
  4. Can I lock a date field?
    By GreyHippo in forum AutoCAD Fields
    Replies: 2
    Last Post: 2006-01-11, 11:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •