Converting / transforming one time format to another

Hi Experts,
      i want to contvert time in format ex. 10:30:00 to a format without colon i.e 103000.  I tryed using Date Trans funinon by giving source as HH:mm:ss as source and target as: HHmmss. when tryed and tested  li i am getting error:  "Runtime exception during processing target field mapping"
i am getting only time  to the XI box not the date.
Thanks,
Siva

Hi Siva !
        This sounds very estrange to me, the formats that you specified is correct. The only situation that I know that TransformDate generates error(considering that the formats are correct, as I think that is your case), is when the source field is empty.
        Well, a single way to solve your need, and avoid the error that I mentioned above(when the source field is empty), is to use the replaceString function to replace colon(':') with empty(''), so, 10:10:00 will lead to 101000. I used this solution several times.
        I hope this helps !
        Best regards,
        Wilson
Edited by: Wilson Santos on Jul 10, 2008 9:23 PM

Similar Messages

  • How can I copy a time machine backup from one Time Capsule to another ?

    How can I copy a time machine backup from one Time Capsule to another ? I bought a 1 Tb Time Capsule to replace my 512Mb Time Capsule. Now, I like to copy my time machine backup from the old Time Capsule to the new one so I can keep using my backup.

    from this support article: 
    (click on image to enlarge)

  • How to convert 12 hour time format to 24 hour time format ?

    Hi,
    How to convert 12 hour time format to 24 hour time format is there any FM if not, please suggest me how to convert .
    regards,
    rakesh

    Hi,
    Have you tried function module HRVE_CONVERT_TIME
    Input parameters will be like
    TYPE_TIME                       B
    INPUT_TIME                      01:00:00
    INPUT_AM_PM                  PM
    Output
    OUTPUT_TIME                     13:00:00
    Regards

  • How can i change the data from one Time Capsule to another?

    How can i change the data from one Time Capsule to another?

    Do you mean copy it?  If so, see #18 in Time Machine - Frequently Asked Questions  You'll need section 2 there.
    If you mean something else, please clarify.

  • Converting to UTC time format

    Hi ,
          I would like to convert the time retrieved from the database to UTC format. Do you have any idea how this possible in MII?
    Is there any inbuilt method in MII for doing this
    Thanks
    Shaji

    Hello Shaji,
    in my opinion a real time zone conversion cannot be achieved by using the MII functions and standard actions. I wrote my own MII action. It looks something like this:
    private static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
    @Action(name = "TimeZoneConverter")
    @Outputs(names = { "OutputDate" }, types = { VariantDataTypes.STRING })
    public boolean run(IActionInstance action,
      @Input(name = "InputTimeZone") String inputTimeZone,
      @Input(name = "InputDate") String inputDate,
      @Input(name = "OutputTimeZone") String outputTimeZone)
      throws InvalidVariableException, DataConversionException {
      SimpleDateFormat inputDateFormat = new SimpleDateFormat(DATE_FORMAT);
      inputDateFormat.setTimeZone(TimeZone.getTimeZone(inputTimeZone));
      Date date = inputDateFormat.parse(inputDate);
      SimpleDateFormat outputDateFormat = new SimpleDateFormat(DATE_FORMAT);
      outputDateFormat.setLenient(true);
      outputDateFormat.setTimeZone(TimeZone.getTimeZone(outputTimeZone));
      action.setActionResult("OutputDate", outputDateFormat.format(date));
      return true;
    Regards,
    Martin

  • Can you extend a wireless connection from one time capsule to another wirelessly?

    We have two time capsules, one is connected to our modem and is transmitting a wireless network. It is in a really out of the way location, and we would like to set up a network printer in a different location on that network, so we got another time capsule (to hook up to the printer at a different location). Could we possibly extend the wireless network to the second time capsule with the printer attached so we could use the printer as a network printer? (If yes, HOW?)

    Could we possibly extend the wireless network to the second time capsule
    Yes, if the second Time Capsule is located where it can receive a good wireless signal from the other Time Capsule.
    To test, move a laptop to the proposed location of the second Time Capsule. Log on using wireless on the laptop and spend some time to make sure that you have a good, solid reliable Internet connection. If you do, then the Time Capsule should work well at that location.
    You would use AirPort Utility to configure the second Time Capsule to "Extend a wireless network".  If you open AirPort Utility now as a test, can you "see" both Time Capsules there?
    The reason that we ask is that you might need to check some settings on the "main" Time Capsule to be able to configure the second Time Capsule correctly.
    with the printer attached so we could use the printer as a network printer?
    If the same printer works on your Time Capsule now, then it should work on the second Time Capsule. If it is working now, you may not even need to re-install it again when it is connected to the second Time Capsule. 
    This is one of those times when you will not know if something will work until you actually try.

  • How do i transfer data from one Time Capsule to another?

    We ran out of space on our old Time Capsule, so I purchased the 2TB model. Problem is that there are no direction (that I can locate) on how to switch over from one device to the other! Can anyone direct me to some online instructions?

    The great Pondini.. wonder of TM
    http://pondini.org/TM/18.html
    saves the day.
    But IMHO.. start a fresh TM backup on the new TC.. preserve the old TC for posterity.. about 6months.. after which time if you didn't need anything on it you won't.

  • Conversion of one date format to another format..

    Hi all..
    Please help me out in this...
    I want to convert the following ...
    Fri May 25 17:49:34 2007 to[b] 2007-05-25 17:49:34
    Help me out of this ...
    Thanks in Advance .....

    Fri May 25 17:49:34 2007 to[b] 2007-05-25 17:49:34 If what you have already is of type java.util.Date, then just use formatting:
    new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(yourDate)If it's a String only, then you need to do conversion:
    SimpleDateFormat from = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy");
    SimpleDateFormat to = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    to.format(from.parse(yourString))

  • How to backup one Time Capsule with another Time Capsule?

    I have two Time Capsules and a Mac Mini. The first Time Capsule (TC1) is plugged by ethernet cable directly to my Mac Mini. It is also set up to provide my home with a wireless network. The second Time Capsule (TC2) is upstairs and connected to this network wirelessly.
    I am using TC1 to store all my photos and iTunes music library because the Mac Mini hard drive is too small, and I want to setup TC2 to backup the Mac Mini and certain specific folders on TC1.
    I've started Time Machine up and selected TC2 as the backup drive but it only seems to backup my Mac Mini hard drive and not the contents of TC1. There doesn't appear to be any way to tell Time Machine to backup TC1 either.
    Can anyone offer a solution?
    P.S. I'm a Mac newbie so please humour me if I have asked anything completely obvious!
    Message was edited by: Carl Bradbury

    Final solution:
    I setup my first TC to use as a Time Machine backup of my Mac Mini, connected via an ethernet cable. It broadcasts a wireless-n network that my other laptops connect to.
    I then bought Intego's Personal Backup to make periodic copies of the important folders (iPhoto library, iTunes library, etc) over to my second Time Capsule, which is creating its own private wireless-g network. The Mac Mini's airport is set to connect to this private network.

  • What is the simplest way to convert to one page format?

    I have a large file set up as facing pages with the master pages having different margin settings. If I want to change so I will no longer be printing 2-sided output but rather 1-sided, what is the easiest way to change the file? Would I just delete one of the master pages and reset margins?
    Thanks,
    Richard

    Off the top of my head, enable layout adjustment before removing or modifying the master.
    Layout > Layout Adjustment
    Modify the right (?) master (margins).
    Verify changes to the live pages.
    The master does not explicity need to be removed.

  • [Oracle 8i] How to convert a string (time stamp) into a date?

    I'm having difficulty figuring out how to convert a time stamp string into a date (or possibly a number).
    The time stamp is 20 positions, character (NOT NULL, CHAR(20))
    in the format: YYYYMMDDHHMMSSUUUUUU
    where Y = Year, M = Month, D = Day, M = Minutes, S = Seconds, and U = Microseconds
    The reason I want to convert this is so that I can compare one time stamp to another (i.e. I want to be able to find the MIN(timestamp), MAX(timestamp), and do inequality comparisons).
    Is this at all possible?
    Thanks in advance for help on this!

    Hi,
    As Damorgan said, if all you want to do is find which is the earliest or latest, then you can just compare the strings: they happen to be in a format where that works.
    If you need to do other things, such as compare them to today's date, or see the difference between two of your rows in days, then you have to convert them to DATEs. (There's no point in converting them to NUMBERs).
    A new data type, TIMESTAMP, which handles fractions of a second, was introduced in Oracle 9.
    Since you're using Oracle 8 (according to your subject line), you either have to
    (1) ignore the microseconds, or
    (2) use a separate NUMBER column for the microseconds.
    Either way, use TO_DATE to convert the first 14 characters to a DATE:
    TO_DATE ( SUBSTR (txt, 1, 14)
            , 'YYYYMMDDHH24MISS'
            )where txt is your CHAR column.
    To convert the microseconds to a number (between 0 and 999999):
    TO_NUMBER (SUBSTR (txt, 15))

  • 24 hr time format

    Hi All,
    Is there a method in jave to convert 12 hr time format to 24 hr time format?

    You've been given all required information.
    - Process has been explained in reply#1
    - Your pattern for parsing is wrong (as told in reply#4):
    a - Am/pm marker
    H - Hour in day (0-23)
    h - Hour in am/pm (1-12)
    - Read the API docs (link already posted in reply#3)

  • Can I convert tracks from one format to another so that the converted tracks appear in the various playlists of the originals?

    I have a large number of tracks which I should like to convert from one format to another (aiff to Apple lossless).  These tracks are distributed in a large number of playlists.  Can I convert a track or tracks from one format to another so that the converted track appears in the playlist of the original track without going through a laborious and error-prone process of converting each track individually, determining the playlist of the original, and allocating the converted version to the playlist (or playlists, because in many cases the original track exists in more than one playlist) of the original track.

    I do not believe iTunes will do this.  The files created are essentially new media files, not regarded as replacements for old files.  There may be ways to trick iTunes if you are good at editing library files but that would be more trouble than it is worth.
    You can check the site below but I do not recall having seen such a script.
    Dougscripts - http://dougscripts.com/itunes/scripts/scriptcount.php?sortBy=Name&op=y - Many itunes scripts
    If you're into writing Applescripts you could try it.

  • Converting  audio file from one format to another format

    Hi Friends,
    Is it possible to convert the audio file from one format to another format(*.mp3 to *.wav file and vice versa)?
    If so, please guide me on the same.
    Thanks in advance,
    Kavitha Anbazhagan

    It's been covered here already, but take a look here:
    Converting CDs to iTunes Audiobooks
    Just read the parts after the section on importing from CD.
    Regards.
    Message was edited by: Dave Sawyer

  • How to convert the date time from MM-DD-YYYThh:mm:ss to YYYY-MM-DDThh:mm:ss format

    Hi All,
    I have a requirement in my project like to convert the date time from one format to another.my situation is like to convert the date time from MM-DD-YYYThh:mm:ss to YYYY-MM-DDThh:mm:ss format. I am using the soa suite 11.1.1.6.
    Can any one suggest me how to convert in the BPEL transformation.
    Thanks,
    Sanju.

    Hi Sanju,
    Store the date to be converted into a variable viz. dateVar. Now, process an expression in assign as: xp20:format-dateTime($dateVar,'[Y0001]-[M01]-[D01] [h]:[m01]:[s01]').
    Regards

Maybe you are looking for