Formatted Search - Date Time Stamps

Hi,
We are trying to use a Date & Time Stamp for two udf's of which I will then calculate the difference in a report. I have a couple of issues. Ideally the user would enter the Start field (udf1), click Shift-F2 and that udf would be populated with a Date/Time Stamp like: 07/12/09 14:30:00 or 07/12/09 02:30PM. The user would also do the same thing for the End field (udf), so I end up with two udf's that both hold a Date/Time Stamp described above.
1 - It looks like I will either need two udf's each for both stamps, one for the Date (date field type) and one for the Time (hour field type)...or I will need to use an alphanumeric field type to hold the whole timestamp. When using the hour field type I still have some issues.
     and
2 - I can't seem to get the right sql (sbo query) function to return the date/time stamp and / or I can't cast it or format it the way I would like.
-If the udf is date field, I can use the GetDate function, but it doesn't seem to get the time with it or the field isn't big enough or formatted properly.
-If the udf is an alphanumeric field, I cast the GetDate function as nvarchar and it returns the date/time stamp, but it is an alpha field and the date is Jul 21 2009  4:41PM. I don't like the Jul 21 2009 formatting
-If I use two fields, one for date (date type) and one for time (hours type), the date is formatted the way I like, but the hours field doesn't display the AM or PM and my formatted search doesn't return military time (14:00 instead of 2:00PM), so I can't tell if 2:00 is morning or afternoon.
So I guess my questions are pretty general...Am I using the correct field types? Any suggestions on what to use? Are there any other ways to format this data? Not all date functions or casts (time, smalldatetime) work in the sbo query so I am looking for options. Any suggestions on what functions or cast to use?
Thanks

Hi,
As you already aware, within B1 you may not treat datetime field easily.  For one of your request: I don't like the Jul 21 2009 formatting.  You could use function such as
Select CONVERT(nvarchar(30), GETDATE(),106)
to change it to 21 Jul 2009.
Thanks,
Gordon

Similar Messages

  • How do you vary the Date/Time stamp format in File Adapters

    In the receiver channel of the File Adapter where you specify the 'File Name Scheme', you do have the option of specifying a 'File Construction Mode' of 'Add Time Stamp'.  How can you specify a different Date/Time stamp format ( eg MM/DD/YY vs YYYYMMDD vs MMDDYY, etc. ) without changing the Date/Time stamp for the entire SAP system?  Also, can you control where the Date/Time stamp appears in the filename?

    Hi,
    There are many threads discussing the same issue. Go thro the following:
    Dynamic file name (Date) in Receiver File Adapter
    Receiver File Adapter - TimeStamp
    Bhavesh's reply in above thread:
    You can use Adapter Specific Identifiers and then change the file name in the mapping. Append the tiem stamp in the format that you want and so on.
    Just use this code in an UDF,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String SourceFileName = conf.get(key);
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
    dateformat.format( new java.util.Date() );
    String newfilename=SourceFileName+dateformat;
    // change to new file name
    conf.put(key, newfilename);
    return "";
    Regards,
    P.Venkat

  • How can i get todays date as an yyyy-MM-dd format instead of Time stamp

    how can i get todays date as an yyyy-MM-dd format instead of Time stamp,i try to do it in the fallowing way
    <code>
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd");
         java.util.Date d = new java.util.Date();
              String s = d+"";
    Calendar cal1 = Calendar.getInstance();
         try{
         cal1.setTime(sdf.parse(s));
    }catch(Exception e){}
    </code>
    but i could not able to get,it throws error as an java.text.ParseException: Unparseable date: "Thu Jan 24 11:43:32 EST 2002" ,pl suggest me any solution.any help would be appreciated.
    Regards.

    Does string s have to end with ""?
    Try doing sdf.format(d) instead.

  • Need to add date/time stamp to file name without time change creating new files

    We have setup our application to save data once a trigger event occurs. We also need the date/time stamp as part of the file name. We used Format Date/Time String and concatenated it into the file name. It all works good, but as the time changes (seconds, minutes, etc.) it causes the Write to File to create a new file with the new filename. Is there a way to create the file and save/latch/buffer the time in the file name so that it doesn't create a new file for every second?
    I've attached a shot of the relevant part of our VI. It's all in a big while loop. The data save is in a case/switch so that when it is triggered it starts saving. (The for loop is to split the data up
    into 4 different files). Like I said, it all works except new files are created every second as the time changes instead of just putting it all in one file with the initial time in the file name.
    Attachments:
    TimeInFileNameQuestion.jpg ‏46 KB

    I need a loop in order to use a shift register. I cannot stop the outer while loop (because it would stop the hardware from collecting data), and I cannot add loops inside which bogs down the processor to where the app stops. I've attached a simpler version of my VI which illustrates the problem. While the button is pressed (the trigger) it should save the data (in this case just cycle numbers) into one file with the initial date/time. But, you can see that it creates 1 file/second. I tried using shift registers, but without adding extra loops I can't see how to do it. Thanks
    Attachments:
    FileNameTest.vi ‏29 KB

  • Add Date/Time Stamp to Timecode Effect

    The Timecode effect of CS5 Premiere Pro is a very useful feature. However, it is missing a Date/Time Stamp. I would encourage everyone to submit a feature request for this. I have enclosed one I submitted. You can cut and paste it into the Feature Request Submission Form.
    Feature Request Submission Form
    Feature Request: Add Date / Time Stamp to Timecode Effect
    The Timecode effect of CS5 Premiere Pro is a very useful feature. However, the Timecode effect is missing the ability to also display the Date/Time Stamp from Premiere captured video. This is a very important feature to include. Many videographers are archiving their miniDV tapes as AVI files since disk prices have become affordable. When I retrieve archived AVI files, I often need to look at the Date/Time Stamp, but unfortunately, Premiere does not offer that ability.
    I would encourage you to add Date/Time Stamp capability to the Timecode effect so timecode, date, and time could be displayed all at once, or selectively picked via checkboxes.
    Others in the Premiere forum have requested this capability.
    Date / Time Stamp - Premiere CS4
    http://forums.adobe.com/message/2564766
    Hopefully, you could add this as an update to CS5. And hopefully, as soon as possible. Thanks

    I am fairly new to Adobe CS6 however I have to totally disagree with some of the replies here on this subject. The package cost me well over £1200 and I expect a say in improving it along the way if I am to progress on to CS Cloud. The suggestion that engineers could spend their time elswere is total rubbish,its what they are well paid for..to listen to consumers suggestions and act on them (I am paying for their time).  I would for one love to see the simple add in plug where the original date/time code could be added and burned into the video timeline. It is obvously not something needed by all but for some it could be essential. For my work I entirely rely on the original date/time code to be visible and burned in. My work is editing surveilance video and I also have to pixellate all faces of young persons so the addition of a date and time code plug in is something I would like to see in After Effects and Premier. Adobe add hundreds of filters/plug-ins that nobody in the world are likely to ever see or use or even asked for, so I cant't see why it would be a big task for them to include it in CS6 or Cloud for the future, especially as many ask for it.
    On the suggestion of DVMPro, yes this is an excellent package which I already use along with vATS (which is quicker),  however the big downside for both these programmes is they do not combine the clips so if I put in 60. mts clips I will get  out 60 clips of what ever format I picked (limited to AVI/Wmv/AVCHD). You would then need combine and re-render the clips or work along the timeline with lots of clips (obviously not in AE as it wont combine clips along one layer....at least I cant see a way to do it (no doubt will be flamed on that one)
    Sony vegas 11 also does not have the capability neither to add and burn in the original timecode however there is an excellent and tiny .dll third party extension called SVDTS that will add the original time/date/seconds to the timeline and burn in to the video. My point on this comparison is that it would not take a lot of time and work for a capable Adobe enineer to develop and implement such a plug in.
    A crude way and free to actually achieve this is to use Freemake Video Converter, add all  your .mts (or what ever format they are so long as its original), turn on the Subtitle 1 option for each clip (no batch turn on Im afraid) and chose to join the clips for output to what ever file format you choose. The original timecode and date will be on your output video clip, not as pretty as DVMPro or vAts but is there and accurate.

  • Video and photo date&time stamp (nokia 5800)

    Hi,
    i have the nokia 5800 and i'm having a strange problem.
    i had to format my memory card so i copied everything to my pc, and after i formated it i copied everything back to the memory card.
    now if i open an image and check to see the date it's showing me the date and time i copied the file back to the memory card instead of the date&time i took the image.
    same thing with the videos.
    i have the same photos in my pc and when i check the exif data i can see the date when i took the photo.
    i opened the videos with "media player classic" and i looked for the "media info", and i can see there when the video was made but it's in UTC time.
    how can i make the phone read the correct time when the images and videos were taken?
    Thanks for any help,
    Erez.

    Sach1n wrote:I want to put Date & Time Stamp on photos clicked via Nokia 5800XM. Is it possible?
    Hi Sach1n
    Unfortunately that is not feasible but you can view the EXIF Data on the 5800XM with a python application as per screenshot here:http://i35.tinypic.com/ht9ovs.jpg
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • I have lost the automatic date/time stamp

    I have lost the automatic date/time stamp when a form is submitted on my response page.  How do I make it start doing it again?  The column just appears blank now with new submissions.

    In the first cell of the column you need to re-enter the formula that used to be there.  Enter "= LOCALTIME(ROWCREATEDATE()".  You may need to change the date format after this.  Click on the Table button in the toolbar, select the Column with the dates, then select your prefered format.
    -Jeff

  • Error messages when sending date-time stamp to Oracle Database

      I have a complex application that communicates with an Oracle database.  One of the table values that gets written to the table is a date-time stamp.  Until recently, the user only required a date, and this was never an error. (The format String used was %d-%b-%Y)  Now they need a time-stamp as well, so I attempted to edit the format string input of the format date/time string function to include the time. I have tried numerous format strings, each of which returns an error on execution.  Depending on which format I use, I get one of 3 different error messages.  The really odd thing is that both the date and time always get stored in Oracle without any problem (regardless of what date-time I use, as long as I include the date and any part of a time stamp - I get the entire timestamp even if I only include %I for the hour).  The only issue is that LabVIEW generates an ODBC error if I try to include the time to the date-time stamp.  In other words, teh date/time stamp writes to the Oracle database, but an ODBC error occurs every time.  I've included a word doc with screen captures of the format strings used, the resultant date/time stamps written to Oracle and the error messages generated within LabVIEW. Any advice would be most appreciated.
    Attachments:
    Summary of ODBC Error messages related to date-time stamp.doc ‏65 KB

    Oracle has a standard date format: 12-Mar-2009 that it accepts as a string, but if you want more than that, you need to use the todate() function. I used this string going into the standard LabVIEW ''Format date/time sting vi' 
    to_date('%d-%b-%Y %H:%M:%S', 'DD-MON-YYYY HH24:MIS') to create the value needed for Oracle.
    Then I use standard format string to create SQL: insert into mytable (mydate) values(%s) and select * from my table where mydate = %s using the string above for %s.
    I think you can also define a global format for all time strings but I haven't bothered figuring that out.

  • Extract date/time stamp and modifier name from memo field

    I need to extract all date/time stamps and modifier name strings from the Work Log memo field - or conversely, filter out all of the comments after the date/time modifier strings.    I have the string extract but it only extracts the first one.  I need to loop until all are found - how can I do this?  The memo field will look something like this:
    3/5/2009 3:32:05 PM John Doe
    Comments - string can be any length
    3/4/2009 12:35:43 PM John Doe
    Comments - string can be any length
    3/4/2009 12:28:17 PM Jane Dough
    Comments - string can be any length and include date format 2009-06-04 14:20 CST.
    3/4/2009 12:27:47 PM Mary HadaliddleLam
    Comments - string can be any length
    3/4/2009 12:26:55 PM Lamseedivy
    Comments - string can be any length
    3/4/2009 12:15:22 PM Mareseedoes
    Comments - string can be any length.

    Here is a formula that will strip all 'comment' and blank lines and puts the datetime stamp and user names into an array.  You have to manipulate the elements of the array to further separate the datetime stamp and user name if required.
    // Declare two indices
    numbervar i := 1;
    numbervar j := 1;
    // Split each row of the memo field into an array
    // if chr(10) does not work then try with chrw(13) or chr(13)
    stringvar array x := split({Sheet1_.Comments},chr(10));
    // Declare a holding array
    stringvar array y;
    // Declare the size of the new array to be equal to the elements in array 1
    redim y[ubound(x)];
    // Copy only if the first word of each element of array 1 is neither "comments" nor a blank line
    for i := 1 to ubound(x) do
    if split(x<i>) = 'comments' or x<i> = '' then
    else
    (y[j] := x<i>;
    j := j + 1;
    // Compress the new array to eliminate the last blank element
    redim preserve y[j-1];
    // Joining the elements of the new array and the number of elements for display
    join(y,chrw(13)) & chrw(13) & ubound(y);
    With your example, this formula will return:
    3/5/2009 3:32:05 PM John Doe
    3/4/2009 12:35:43 PM John Doe
    3/4/2009 12:28:17 PM Jane Dough
    3/4/2009 12:27:47 PM Mary HadaliddleLam
    3/4/2009 12:26:55 PM Lamseedivy
    3/4/2009 12:15:22 PM Mareseedoes
    6.00
    Make sure the "can grow" option is checked to display the results and also check for case sensitivity of "comments".
    Edited by: Sanjay Kodidine on Jun 30, 2009 10:13 AM

  • Oracle Role Creation Date time stamp

    Hi All ,
    Can anyone pls help me to find out the Date time stamp when a Role has been created into database .
    Your early response will be appreciable.
    Many thanks ,

    Hi,
    >>Actually I am searching through google to see the each column name description for sys.user$ but not able to find anything useful
    These base tables are not documented (public) ... It seems that PTIME column stores the time stamp information when the password's user has changed.
    SQL> create user myuser identified by myuser;
    User created.
    SQL> select
      2    name,
      3    to_char(ctime,'dd/mm/yyyy hh24:mi:ss') ctime,
      4    to_char(ptime,'dd/mm/yyyy hh24:mi:ss') ptime
      5  from
      6    user$
      7  where name='MYUSER';
    NAME            CTIME               PTIME
    MYUSER          30/04/2008 10:52:25 30/04/2008 10:52:25
    -- waiting some time ...
    SQL> alter user myuser identified by legatti;
    User altered.
    SQL> select
      2    name,
      3    to_char(ctime,'dd/mm/yyyy hh24:mi:ss') ctime,
      4    to_char(ptime,'dd/mm/yyyy hh24:mi:ss') ptime
      5  from
      6    user$
      7  where name='MYUSER';
    NAME            CTIME               PTIME
    MYUSER          30/04/2008 10:52:25 30/04/2008 10:53:08Cheers
    Legatti

  • Date Time Stamp during capture?

    My Sony HDV is outputting the date time stamp to my video monitor. that is what I want but FCP does not burn it. I mean it doesn't capture it. I've looked allover the preference menu but there don't seem to be any options for this.
    So is it possible? HOw do I enable the date time stamp from the original recording to be visible?

    You can't get this over firewire. You'd have to have a capture card and capture the video output from the camera or deck. You wouldn't be working in the native format if you did that, however. Which might not be a bad thing..
    Shane

  • Maintain Date/Time Stamp in Export as XML

    Hello,
    I've create a report which has a field as mm/dd/yyyy HH:mm.
    When I export as .TXT .CSV, Excel ect it maintains the format; however when I export as XML I loose the formate and it exports as mm/dd/yyyy 12:00:00
    The below in anyother format or in BusinessObjects would be 09/04/2007  10:38.
    <COLUMN INDEX="6" ID="4" TYPE="Date" FORMAT="m/d/yyyy  hh:mm:ss  AM/PM">Actual Start (Date & Time)</COLUMN>
    <CELL INDEX="6">9/4/2007 12:00:00 AM</CELL>
    Any thoughts?
    As well is it possible to customize tags of the exported XML so it is more of a XML document then a spreadsheet.

    Thank you!
    For the issue with the Date/Time stamp is this a bug in older versions? I am using BusinessObjects 6.1; the only time it does this is when exported as XML
    Cheers,
    Tim
    Edited by: Tim Whitehead on Jul 13, 2008 7:17 PM

  • Date/Time Stamp Display

    When watching my movies I almost always wonder "when was this shot"?
    One of the things I miss the most about burning my videos to DVD instead of playing them from the tape is the ability to push a button, see the date/time stamp on the screen and then push it again to make it go away.
    I know this is a long shot, but is there anyway to get similar functionality in iMovie & iDVD?
    Right now I am playing with putting a title at the beginning of every clip in the movie with the date info and that is A LOT of work. Still it won't help me when I am viewing the middle of the clip.
    If there is no way to get the date/time stamp to appear/disappear during playback by pushing a button, is there at least a way that a title can get the date/time info for me? Maybe some variable I can type in the title (i.e.:%DATETIME%)? That would at least save me a couple steps.
    Or is there a plug-in that does something along those lines?
    I think that would be a great feature if they don't have it already (and not to hard I would think).
    Thanks
    TJ
    17" iSight iMac   Mac OS X (10.4.3)  

    Hi Tj
    I've wrestled with this problem ever since VHS went out of style. The old VHS would pick it up and you couldn't get rid of it. Digital got rid of it when transferred to imovie. My Sony camera can show it or remove it on it's own remote screen. I found the best way to keep track of the time stamp is when I'm done with a tape is to review it and create a data base on a hard copy. It's a hard habit to get into but once it's done it saves a ton of time. I physically number the cassette and use categories in a columnar format: NO., REAL TIME, EVENT, DESCRIPTION, COMMENT DATE, YEAR. Being a data base document I can arrange in any order I want.
    There are other advantages. By reviewing and entering the information it stays fresh in my mind. I can also add comments like: Add music and effects to this clip.
    Gee Three/slick has numerous titles of with some look like time stamps or you can create you own directly onto the clip. There is no need for a separate (title over black) title.
    Part of the fun in editing is picking the title, what font to use and be able to dazzle your viewers with special affects. Slick has one called Far far away from the Star Wars movies where the titles slowly disappear into the distance.
    Go to:
    http://www.geethree.com/slick/index.html
    Tom L

  • How to print date & time stamp on photos?

    How to print date & time stamp on photos?

    Three methods:
    File>process multiple files>labels. Be sure to uncheck "same as source", or the originals will be overwritten. It is best to work on duplicate files, esp. while learning.
    Use the horizontal or vertical type tool to add the information manually to each picture file
    If the same information is to be applied to several pictures, e.g. a copyright notice, use  of a brush made in PSE is very efficient

  • The export file from a calc script - naming and date/time stamp

    Here is a simple calc script to export data.
    2 questions:
    1. Is there an easy way to add a date/time stamp on the name of the data file so that it does not overwrite the older ones every time?
    2. I tried to specify the path so that it write to another server. "\\mfldappp011\E:\Exp_AW.txt". It's not working. How should I specify the path ?
    Fix (@Relative("Yeartotal",0),"Actual","Working",&ActualYear);
    Dataexport "file" "," "C:\Exp_AW.txt" "#MI";
    EndFix;
    Edited by: user9959627 on Sep 7, 2012 11:25 AM

    Probably easiest to call the maxl script from a command line script, then rename the exported file to include the tme stamp and copy/move it to a location.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for