Question of Variable text "Date"?

How can I get my release date and created to resemble my modification date? Here it is what it looks like now in the script.  I like just the look of the modified date string. If it is not possible to give them a look in this way, not much, I'm just curious.

Date modified: June 7, 2016 15:52

Release date: 06/06/16

Creation date: 06/06/16

The above script function is to get the format string of the Date object.

Another simple solution is:

In order to change the format of the variable Date of Modification, you can do so below:

Using the Script

var md = doc.textVariables.itemByName("Modification Date");
md.variableOptions.format = "MMMM dd, yyyy hh:mm a";

Through the user interface

Go to the Type->-> set text Variables

Select the change Date and click the button change.

In the Date Format, enter the following:

MMMM dd, yyyy hh: mm a

Now, all instances of text Date of change variable will have the desired format.

Tags: InDesign

Similar Questions

  • Bind variables and dates

    I am writing a process to delete records based on dates.

    Here is the chart:

    Column name Data type Nullable Default Primary key
    IDNUMBERNO.-1
    CT_NAMEVARCHAR2 (100)Yes--
    CT_CATEGORYVARCHAR2 (100)Yes--
    BASE_PTSNUMBERYes--
    PROD_PTSNUMBERYes--
    REF_PTSNUMBERYes--
    START_DATEDATEYes--
    END_DATEDATEYes--
    CREATED_ONDATEYes--
    CREATED_BYVARCHAR2 (50)Yes--
    UPDATED_ONDATEYes--
    UPDATED_BYVARCHAR2 (50)Yes--

    start_date and end_date are the fields of date key.

    The query will remove the dates with specific start and end dates.  The question I have, is that I get a ORA-01858: a non-digit character was found here where was waiting for a digital error while the query is running.

    remove from ct_point_values

    where start_date =: P4_START_DATE_V

    and end_date =: P4_END_DATE_V

    If I run the query in the sql window, no problem:

    remove from ct_point_values

    where start_date =' 01 / 01/2014 '

    and end_date = 31 December 2014"

    Find the query with the works of values hard-coded.  Links to fail.  I tried casting and to_char to_date variations with no luck.

    One thing that I notice, is that when I go to enter my bind variables in the sql workshop, the fields are pre-populated with this:

    1 & amp; #x2F 1 & amp; #x2F; 2014

    12 & amp; #x2F 31 & amp; #x2F; 2014

    01/01/2014 and 31/12/2014.  I found that the only element relates to this suggests that this is a possible bug:

    SQL Bind Variables workshop - Date issues

    Any thoughts on how to address this issue, or is it really a bug?

    I run on Apex 4.2, 11g.

    Thank you!

    Hello

    I guess that these dates come from elements on the page to which the user can select a range of dates.

    These fields have a custom format mask?

    What seems to be the case for me, is that these fields have an explicit format mask (for example: DD/MM/YYYY) but the default database/session format mask is something different (e.g. DD-MON-YYYY).

    I suppose also that the issue in the SQL workshop isn't something related.

  • Transmission of text data

    The web page (navigation) loading sequence is

    www.ABC.com/main.html > www.abc.com/subpage1.html > www.abc.com/subpage2.html

    QUESTION:

    How to pass text data that is in a dynamic text box ("I want to fly") from www.abc.com/main.html to www.abc.com/subpage2.html

    If you use getURL() to navigate from one to another html page, use a query string to add the data.  (you should be an expert in that).

  • How can I add text (date, description) to a photo in photo so that it will show on a copy of this picture?

    How can I add text (date, description, etc.) to a photo that she appears on a print that photo?

    Use an image editor as to put on the image preview or add as metadata and print a Board-contact with the metadata fields, you use shown

    LN

  • Get the value of the Variable text

    Hi all

    How to get the value of the Variable text. I want to check the value of variable text title in each page.

    Thank you and best regards,

    Robert S

    myText.textVariableInstances.everyItem (.resultText) would do it.

    The representation of a TextVariable on the page is a TextVariableInstance. They are objects of 'text' (parent may be: cell phone, change, note, Note, history, TextFrame, XmlStory). The "resultText" property is the string that the variable instance currently shows. See Adobe InDesign CS5 (7,0) object model JS: TextVariableInstance

  • Variable text search and replace it with another variable of text

    Hi, I want to do the following with VB script.

    Can someone help me?

    I have a document with A text element and variable text B are defined.

    And A variable text is used in the document.

    1. search all the variable text from the document

    2. replace A text elements for variable text B

    3 Remove A variable text

    Thank you.

    erieru103

    Hello

    Ok. You have your point, sorry...

    As I wrote - VBA do not know, but as JS, it could be like this:

    var
         doc = app.activeDocument, destCell, currFile, currRec, currImage, i,
         mVarA = doc.textVariables.item("variableA"),
         mVarB = doc.textVariables.item("variableB"),
         mVarAinst = mVarA.associatedInstances,
         len = mVarAinst.length;
    
    while (len-->0) mVarAinst[len].associatedTextVariable = mVarB;
    

    mVarAinst is an array of instances of varA ==> no need to search through all doc

    Jarek

  • Can't add placeholder text data merge for all blocks of text on the document

    I'm trying to put together a script that loops if all pages in an indesign file, search all text frames label caption1, caption2, caption3... (whenever you get to a new page, the number of text images label starts again from 1) and add a placeholder in the text data fusion: caption1, caption2, caption3... but this time, when you get to a new page the number continues to go... caption4, caption5 and so on.

    Page 1 - image text = caption1 = tag > data merge placeholder = < < caption1 > >

    Page 1 - image text = caption2 = tag > data merge placeholder = < < caption2 > >

    Page 1 - image text = caption3 = tag > data merge placeholder = < < caption3 > >

    page 2 - text = caption1 = image tag > data merge placeholder = < < caption4 > >

    page 2 - image text = caption2 = tag > data merge placeholder = < < caption5 > >

    Currently, the script is adding placeholder text merge data only for the two text frames first (out of 6) on a page (about 8 pages) and just the first image of text on the page two (out of 3)

    Any help will be greatly appreciated

    Here's the script:

    myDocument var = app.activeDocument;

    -SOURCE DATA CALLS FUSION

    main();

    main() {} function

    myDataSource var = File.openDialog ("Please select a datamerge source", "text files: * .txt");

    If (myDataSource! = null) {}

    myDocument.dataMergeProperties.selectDataSource (myDataSource);

    myDocument.dataMergeProperties.dataMergePreferences.recordsPerPage = RecordsPerPage.MULTIPLE_RECORD;

    }

    }

    -MERGE OF DATA FIELD

    function get_field (captionString, myDocument) {}

    fields var = myDocument.dataMergeProperties.dataMergeFields;

    for (var f = 0, l = fields.length; e < l; f ++) {}

    If (fields [f] .fieldName == captionString) {}

    Returns the fields [f];

    }

    }

    Alert ("error: did not find all the fields with the name" + field_name);

    }

    THE TEXT - ADD PLACEHOLDER DATA MERGE

    var countFrames = 1;

    for (i = 0; i < myDocument.pages.length; i ++) {/ / TOTAL NUMBER OF PAGES in the DOCUMENT}

    var capPerPage = 1;

    for (x = 0; x < myDocument.pages [i].textFrames.length; x ++) {//COUNT TEXT TOTAL IMAGES PER PAGE

    If (myDocument.pages [i] .textFrames [x] .label < 0) {}

    Alert ('can not find any image caption');

    } ElseIf (.textFrames [x] myDocument.pages [i] .label == 'caption' + capPerPage) {//IF IT IS A TEXT LABEL of IMAGE 'caption1' EXECUTE

    var captionString = "caption" + countFrames;

    var myTextFrame = myDocument.pages [i] .textFrames [x];

    var myDataMergeProperties = myDocument.dataMergeProperties;

    var myTextFrame.parentStory = monarticle;

    var myStoryOffset = myTextFrame.parentStory.insertionPoints [-1];

    var myNamePlaceHolder = myDocument.dataMergeTextPlaceholders.add (monarticle, myStoryOffset, get_field (captionString, myDocument)); ADD DATA FUSION TEXT HOLDER TO THE TEXT BLOCK

    countFrames ++; INCREASE THE NUMBER TO ADD DATA FUSION TEXT PLACEHOLDER FOR THE NEXT BLOCK OF TEXT

    capPerPage ++;

    }

    }

    }

    Hello

    To verify this change (replace for...) loop)

    var countFrames= 0, currLabel, capPerPage;
    
    for (i=0; i
    

    Notice countFrames starts at 0.

    Jarek

  • Not packing on the text data review screen

    We are having a problem with no dressing on a screen, what happened on the screens of the interview and examination of the text data. Anyone had this problem before? And how to fix it?

    Thank you

    It will be a CSS problem that can be fixed by modifying main.vm.css. I don't know much about CSS, but when I had this problem with the review screen of data for a custom look that I was working, I was able to solve it by specifying a width of data-review-point which was smaller than the width of my graphic banner.

    In my example, my graphic banner was 960px width, and I added "width: 820px;" for review-data element in main.vm.css:

    .data-review-item {
        clear: both;
        width: 820px;
    }
    

    If you have someone CSS autour, get them to take a look at main.vm.css and I expect that they will be able to find the right fix for your particular situation.

    See you soon,.
    Jasmine

  • variable length data file

    Hello
    I need assistance with the values in my data file. I search and can not find info on it. I'm sure it's there. However, I spent 3 and a half hours to research.
    someone can help me.
    I have three files.
    created the sql table file that contains a single table.
    a control file
    a data file

    the table contains the columns date and created_by column.
    I have these columns in my control file with the given position.
    My question is:
    In the data file.
    can the date columns, I use the sysdate to a value?
    If so, it means a date achual when it's loaded?
    Second:
    in my data file.
    can I use the USER name as a value?
    I want to
    the user, like me, when I load the data file and then ask her to varify that this is going to work, I'll see my username in the created_by column.

    Thanks for your help
    kabrajo

    If I understand correctly, you want to load the current date/time and the current user for each line.

    Here's a recent thread similar to what you need - documentation links are here
    user input windows OS when loading data using sql loader

    In this case, the poster was interested in an OS/user. Your question is more simple. You can use these lines in your file of control for the user name and datestamp colums

    ...
    datestamp EXPRESSION sysdate,
    username EXPRESSION user,
    ...
    
  • Is Essbase 11.1.2 record text data?

    Anyone know if Essbase 11.1.2 record text data? or it identical to the older version just save a numeric code which link to RDBMS on Hyperion Planning data

    Thank you

    Since the Essbase DB 11.1.2 Administrator's guide - Essbase must store the values of text as numbers. Therefore, a mapping of text values to numeric values. You define the mapping between text and numeric values by creating a list of text object. A list of text object consists of a list of text values and a numeric value that corresponds to the value of each text.

    HTH-
    Jasmine.

  • Formatting and variable text-

    Hi people,

    Just wonder if you pouvez/how you store text in variables with a certain degree of fit.

    The problem - my user selects, for example, I own a "dog" and gets the text of the variable:

    We see that you are a dog owner. We want to sell you a bunch of crap for the purpose of making a bunch of money out of your affinity with your pet. ' This example is several lines long deliberately in order to get my point and included the arbitrary arbitrary text text text arbitrary text arbitrary text arbitrary text arbitrary text arbitrary text arbitrary arbitrary arbitrary text of arbitrary text.

    i.e. If the variables are useful for storing "canned text" somehow, the provision on the integration is not large;

    So we can

    Store text in variables with jumps jumps/new line sentence included, so that our text above would be readL

    We see that you are a dog owner.

    We want to sell you a bunch of crap for the purpose of making a bunch of money out of your affinity with your pet.

    This example is deliberately more...

    to make it more useful for rehabilitation.

    FYI - in our form, once the list selection is the values of variables (text canned) are assigned to the text box.

    Pointers appreciated. Especially if we could get breaks own sentence that would be a good start

    What is the effect you are after?

    Here is one approach.

    Form1.Page1.Subform1.bodytext::calculate - (JavaScript, client)

    If {(form1.page1.subform1.pet.isNull)

    this.rawValue = null;

    }

    else {}

    this.rawValue = "we see you own one" + form1.page1.subform1.pet.rawValue + "." + "\n\n" "»

    + "We would like to sell you a bunch of crap for the purpose of making a bunch of money out of your affinity with your animal." + "\n\n".

    + «This example is deliberately more...» » ;

    }

    Steve

  • Variable text and graphics

    I just started using InDesign for the formatting of books. I created a text variable to use as a head of the race with each chapter at the top of the page name. The problem is: I want to incorporate a small graphic symbol in the head of the race, next to the name of the chapter. I put all the elements on a master page, but since the length of the variable text changes with each chapter name, the distance between the graphics and the current title changes. Is there anyway to integrate a graphic in the variable text itself, so it remains constant with changing text?

    Thanks for any help.

    You can not put the image in the variable, but it looks like you want it next to the variable. What you can do.

    Place the graphic symbol in current title after the variable text, or, if you already have put as a static picture, cut the frame and paste it into the text after the variable. If he has pasted or placed in the text, it will be an anchored frame and it will be able to move in the text moves (as the variable takes up more or less text).

    Ken

  • I have a simple question about the meta-data.

    Hello. It is a simple question about the meta-data. How can I get the video bitrate of a flv or mp4 (video playing via NetStream file) file

    right now I have this:

    Code
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object)
    {
    for (var in meta props) {}
    trace (props + ":" + meta [props]);
    }
    MovieClip (root) .durations = meta.duration;
    trace (MovieClip (root) .durations);
    };
    NS.client = netClient;

    And my output is:

    videocodecid: avc1
    audiocodecid: m4as
    aacaot: 2
    Width: 960
    AudioChannels: 2
    videoframerate: 23.976
    TrackInfo: [object Object], [object Object]
    moovposition: 32
    avcprofile: 77
    audiosamplerate: 48000
    avclevel: 31
    seekpoints: [object Object], [object Object], [object Object], [object Object]
    height: 540
    Duration: 221.312

    As you can see, there is nothing of video bitrate.

    I know that the video bitrate of my videos, but then I have to manually type each number of bitrate into my flash project, and it would be such a fuss when I have a lot of videos. Would be nice if flash can detect the video bitrate.

    It's for my online portfolio.

    Why you divide by 8?  If you want to convert bytes into bits, multiply by 8.

  • Unable to load text data in planning with ODI

    Hi all

    I am able to load digital data in the planning with odi but trying to load its rejection of all lines of text data.

    I am trying to load just two records and I get this message

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last): "< string >" file, line 2, in there? Planning, writer load summary: number of rows processed successfully: 0 number of lines rejected: 2

    I went through blog "ODI-get the textual data in the planning" of john and he has helped me get to this point, but I get this error at the end.

    Someone help me please and please let me know if need more information in this regard.


    Concerns

    Achyout

    If you load data, you don't need to use the operator column, it is used with loading of metadata.
    If you go through my blog shows exactly how to do and the columns that are required.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Release date of variable text for the previous month?

    I'm automating a package of reports based on the data received on the following month, day 8. I need models to pull in the month statement , not the month I publish to the course. Is it possible to perform such a feat? See you soon.

    You simply define the content of a block of text with the variable.

    There are several ways to do so, but if you put something weird in the model as XXXXXXXX you can use a search/replace.

    var x = new Date();

    with (x)

    {

    setDate (1);

    setMonth (getMonth () - 1);

    }

    var months = new Array();

    months [0] = "Jan";

    months [1] = "Feb.";

    months [2] = "March";

    months [3] = "April";

    months [4] = "may";

    months [5] = "June";

    months [6] = "July";

    months [7] = "Aug.";

    months [8] = 'Seven.';

    months [9] = "October";

    months [10] = "Nov";

    months [11] = 'Dec.';

    var y = x.getFullYear ();

    var m = month [x.getMonth ()];

    var lastmonth = m + "" + y;

    myDocument var = app.activeDocument;

    Clear the find/change text preferences.

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    Set the search options.

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    Search the document for the string "XXXXXXXX" and change it to "text".

    app.findTextPreferences.findWhat = "XXXXXXXX";

    app.changeTextPreferences.changeTo = lastmonth;

    myDocument.changeText ();

    Clear the find/change text preferences after the search.

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    That save you and run when you open the document.

    Read the Guide to the script is a good thing to do no matter if it works for you, this time.

    Don't forget to mark this as replied to what works for you.

Maybe you are looking for

  • Safari quit working on my iPad4 and iPhone 5 s after 9.2.1 update. ?

    Safari quit working on my iPad and iPhone. Worked fine until this day 9.2.1. Is there a solution? Does anyone else know this? Safari will only work in private mode. If in normal mode, with automatically close Safari.

  • So... bug fix?

    So I know Jelly Bean is apparently right around the corner, but what happened to this bug fix that Motorola has promised us? It was what? 8 months since ICS was released on this phone filled with tons of bugs and they have never bothered to solve the

  • Table 1 d in table 2d

    I have a table 1 d of data that I need to have in 2d. For example. 1234123412341234... must be 1234 1234 1234 . . . There is no set number of data points. The data come from daq read and can be from 1 to 8 channels. Thus the table 1 d will be 1-8 poi

  • Problem installing Windows 7 in my Lenovo Y410

    My operating system precedent is win xp... I have updated for win 7 but, I donno... maybe its crashing here... .when I start the laptop it says that the BROADCOM ROM came out... say it could not load media... I tried with the new lenovo software inst

  • Catalog file Vista 64 missing file 'GlobalCatalog.wbcat'

    I need to fix my Mediaid.bin file.  I know how t o to fix but miss me 'GlobalCatalog.wbcat' in the file catalog I need catalog with this file inside the folder.  Also at least BackuoSet "YYYYMMDD" "xxxxxx" folder can be recreated I need too! I tried