Possible to format {pubDate}  in RSS demo?

Is there a way to format {pubDate} in the RSS demo?
From my understanding, the setColumnType only serves as a
means to be able to sort date values.
Is there a way to format the date results in a more friendly
manner? (ie mm/dd/yyyy).
thanks!

Nope, perfect. I had the dateformat stuff but didn't know how
to apply it...
i just started futzing with spry about 2 days ago and didn't
see the
filter() functionality. With that, I'm off and running.
thanks!.
"iHuman" <[email protected]> wrote in
message
news:era1dm$gat$[email protected]..
> Sure. Actually the HTML portion that contains the spry
data stays the
> same:
>
> <div class="SubjectColumn">{title}</div>
> <div class="PubDateColumn">{pubDate}</div>
>
>
> Instead, I manipulated the data as it came in:
>
> var dsArticles = new
> Spry.Data.XMLDataSet("data/feeds.cfm?id={dsFeeds::@id}",
> "//item"); // this is the dataset that contains pubDate
>
> // convert and format pubDate
> function filterMyData(ds, row, rowNumber) {
> var myData = row['pubDate'];
> da = new Date(myData) // create a date object set to the
RSS pubDate
> db = da.toGMTString() // convert to a string
> dc = db.split(" ") // split the string on spaces
> if ( eval( dc[3] ) < 1970 ) dc[3] = eval( dc[3] )
+100 // correct any
> date
> before 1970
> // Wed 19 Jan 2007 01:30:00 -0700
> // [0] Day of week
> // [1] Date
> // [2] Month
> // [3] Year
> // [4] Time
> // [5] GMT zone
> dd = dc[0] + " " + dc[2] + " " + dc[1] + ", " + dc[3];
// format date
> row['pubDate'] = dd;
> return row;
> }
>
> dsArticles.filter(filterMyData);
> dsArticles.setColumnType('pubDate','date');
>
>
> You can customized your specific date format based on
which array elements
> you
> use in your final db string.
>
> Let me know if you have any questions....
> elaine
>
>
>

Similar Messages

  • Is it possible to format an external hard drive on my mac?

    I purchased a portable external hard drive to back up my former pc in the hopes of using it on my mac. Obviously, I did not research this seeing now that I can integrate my files and photos from my pc to my mac. It appears possible to format the external hard drive to my mac os, which should be done prior to downloading files from my pc to the hard drive. Has anyone dealt with this or am I the only idiot that purchased the external hard drive thinking that was the thing to do before my pc dies completely?

    A HD formatted in EXFAT will transfer data between both PC and Mac.
    However dont make the titanic error most do in having merely a single external HD backup of your data, thats a tragedy waiting to happen.
    HD are cheap as dirt.
    Ideal situation is 3 HD ,   1 for Mac backups, 1 for data archives stored away safely and updated as needed / often.
    and a 3rd HD in Exfat for data transfers  (or a thumb drive for the same thing to save $$)

  • IS it possible to Format the data to CXML format in Java ?

    Hi all,
    I am new to Java programming. I am an SAP ABAP Developer and in my SAP CRM E-Commerce Web Shop coding, I have to do coding in Java.
    My current requirement is that I have some set of data and I have to format this data to CXML format in Java. IS this possible?
    Can I format the data to CXML format in Java? Are there standard API's to do this? Please let me know how should I procced with the coding?
    Apart from formatting the output to CXML format, I have to also post this data to an external market place...How can I do this?
    Please help me with relevant information. your help will be highly appreciated.
    Regards,
    Jessica Sam

    It should be possible to format the data, yes. If there's a "standard API" it should be one that comes out of that SAP CRM thing, so look there.
    As for "posting to an external marketplace", that's far too vague a concept to be able to answer. You should start by getting the specs about "how to post" from that marketplace.

  • What is the possible output format for a BAPI  ?

    Can anybody tell me what is the possible output format of a BAPI.
    What happens when a BAPI excecutes ?
    thanks

    Hi,
    All the output message/feedback about a trasaction are stored in the RETURN parameter table .
    You can read that RETURN internal table using "format message" or "Read_Text" Fucntion modules.
    Thanks
    Dany

  • I removed my iphone screen guard ..if i use it without screen guard is there any possibility in  formation of scratches

    i removed my iphone screen guard ..if i use it without screen guard is there any possibility in formation of scratches

    Only if you carry loose diamonds in your pocket. The glass on the iPhone is Corning Gorilla Glass, and is very hard. It's not a good idea to carry an iPhone (or any other phone, for that matter) loose in your pocket without a case that covers the screen, earpiece, dock conntector, headphone jack speaker and mic. There's too much in most people's pockets that can damage these parts, or get into them. Pocket lint in the Lightning connector or headphone jack can cause all kinds of mischief, and the mic, speaker and earpiece are completely exposed.
    The screen natively has a coating on it that repels oils, making it very easy to remove fingerprints with a tissue or cloth. Putting a screen protector on the phone defeats this feature.

  • HT5628 Is it possible to format entire hard disk and install windows 8 only in mac mini?

    Is it possible to format entire hard disk and install windows 8 only in mac mini?

    You can, but it's not recommended. If you are going to use Windows all the time, at least give some GBs to OS X, because you will need it to install firmware updates.
    Use Boot Camp Assistant to create a Windows partition. You can find it in /Applications/Utilities. Then, follow Apple's steps to install Windows 8 > http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.8.pdf You must use a 64-bit version, and note that not all Mac minis support Windows 8. Check if yours is supported > http://support.apple.com/kb/HT5634?viewlocale=en_US&locale=en_US
    Boot Camp Assistant will ask you to download the Windows support software onto a USB drive. You will need to install it in Windows, so it's very important to download it. If not, you will have problems in Windows.
    If your Mac doesn't support Windows 8, install the Windows version the site gives you

  • Is it possible to format the excel from OAF ?

    Hi,
    I have a requirement that :
    We have a page from where we are exporting data to an excel sheet, which is working fine.
    But the data in the excel sheet is not formatted: now the problem is, we have to give a proper formatted data in excel form and it should be available when export button is clicked.
    Is it possible to handle the excel format through code from OAF ?
    Thanks,
    Ranita

    Ranita,
    Why dont you try with XML report.
    Call the XML(RTF) report in XLS format when button is clicked.
    Regards
    Srdihar

  • Is it possible to format a hard drive with HFS  for a Macbook on a PC?

    I recently received a Macbook hard drive for my niece. She trashed her Macbook to the point that i is not worth repairing. I usually work with PCs and am a hardware familar with Macs. I have a ineterested party for the hard drive but they want me to erase the drive and reformat it so they can use on a Mac. They will put on the OS. Is it possible for me to erase it and format it for use on a Mac with a PC? I don't own a Mac.

    I do not know of any application that will do this on a PC. It would be almost trivial for the new owners to do this on their Mac, however. Disk Utility (located in /Applications/Utilities) will see the drive. Select it and click the Erase tab. Set the format to whatever you want and click Erase. Takes a few seconds.
    Best of luck.

  • Is it possible to format an USB device from Applet on ExFAT file format?

    We have a requirement in our project to format an USB device from Applet on ExFAT file format. I am beginner in JavaFX2 and not sure whether this can be handeled using Applet. Can somebody hep me on this?
    Thanks in Advance !!!!

    The only way you could possibly do that is by using some native library (accessed with JNI/JNA), or by running somekind of command from Java (using for example Runtime.getRuntime().exec()).
    There is no Java API to do as you want as Java in general provides only an abstractiion of the underlying system which is not detailed enough for this kind of low level functions.

  • Is there any possibility to format an Imac without backing up all datas (re-install the OS without touching to Itunes-Iphoto-Safari Bookmarks etc.)?

    Hi everyone,
    I guess the question pretty much speaks for itself. My Imac is running very slow these past few months and I would like to reinstall the whole OS.
    However, I would like to avoid loosing any data by formating the Imac without touching the user desk. Is that possible? And if so, what are te steps to proceed?
    Thanks in advance for you help!

    Formatting a drive is a destructive process, so you cannot format a drive without losing everything on the drive. But it is possible to reinstall OS X without reformatting the drive.
    But you need to tell us what version of OS X is installed. I would recommend you backup your drive before such an action.

  • All Possible Import Formats for iMovie

    I was wondering if there is a complete list of import formats. I want to edit a clip using iMovie, however, the program does not recognize the file format. What is/are the possible format(s) of movie files that can be imported into iMovie for editing? Thank you!

    Hi
    No version of iMovie is a general video importing tool.
    eg You can not directly import from DVD ( iM'08 had a work around a while I THINK )
    (DVD needs mpeg-component to QuickTime Pro to be converted - or I use Roxio Toast™ to do this)
    So what kind of material do You want to Import/Capture ?
    I use
    video - miniDV tape Cameras - streamingDV - and via QuickTime Pro I can convert many formats to this as QuickTime .mov that then imports nicely into iMovie.
    audio - ONLY .aiff 16-bit 48kHz (from Camera) and 44.1 from Audio-CD (NO .mp3 or anything else - all converted to .aiff) - THIS saves a lot of troubles
    photo - .jpg (.bmp results in very red toned photos to me)
    AIC - is also a supported video-format - especially if exported to FinalCut ! as it needs much less rendering than video from iMovie (directly).
    .avi - containing Iv50 - IS NOT compatible but needs a Window PC and needs to be converted to .wmv first then to streamingDV in QT to work.
    There are Video Converting programs to buy - I have non of them.
    FinalCut is not so much better.
    So please - be more specific - there are lot's of codecs out there
    .avi, .mov, .wmv, .mp4 - ARE Containers and can contain any strange Codec. So one needs to find out what the true Codec is.
    Yours Bengt W

  • Is it possible to format the entire macbook and saving apps like microsoft word on a harddisc and then just reinstalling them without having to buy an other licence?

    Hye
    I want to format my macbook but i want to save my apps like word, excel, powerpoint.. Is it possible to save them on a hard disc because i tried to save them and open them on an other mac to check if it works but it didnt..
    Thanks

    I think you would have to reinstall the keys seeing that if you format the computer all the data is gone. Even though you backed up that data you never know what can happen when you try to reinstall certain apps. Not sure what method you can go by, you should run a diagnostics test to see how you computer is doing internally.
    Goodluck

  • Is it possible to format an external USB drive with XFS or EXT3 ?

    Greetings all.
    I am running a 2,8Ghz 8x core with 6Gb ram. I have a NAS, (Buffalo Pro Duo Linkstation) which has a built in linux which saves data using XFS (I think). It has a built in backup routine, but the drive it backs up to MUST be in XFS or EXT3 (Fat 32 works but it drops all files over 2GB ;( ... ) So - here's my question:
    How can I format the external USB drive (A seagate freeagent) in XFS or EXT3 so that it can run on my Buffalo? My preference is to use a GUI mac program (does one exist?) or to use a command line UNIX command (FSK? - but then, how????). I could also use (GASP!) a windows utility on parallels, or even install a linux distro via parallels. But it should be easy I hope...
    Looking forward to any ideas/thoughts, tips, etc.
    thanks and best to all from Berlin,
    Jason

    Download a "Live CD" (one you can boot of into running copy of Linux without having to install anything; for example, [OpenSUSE Live CD|http://download.opensuse.org/distribution/11.0/iso/cd/openSUSE-11.0-GNOME-Li veCD-x86_64.iso]).
    Use OS X' Disk Utility to burn it to a CD.
    Insert the CD you just burned (if it ejected afterwards), and then restart your Mac.
    Hold down the 'C' key on the keyboard as the Mac boots, and it should switch to booting off the CD. Once the CD starts loading, you can let go. It will take a couple of minutes, but it will eventually boot into Linux.
    Attach your USB drive.
    Run gparted (you need to search the menus for it, it's under system administration, I think -- or you can open up a terminal window and simply type 'gparted').
    Find your disk (/dev/sdb or /dev/sda) and partition and format it using the filesystem you want.
    When done, restart the computer. You'll boot back into Mac OS X and have an EXT2/EXT3/XFS formatted external drive (that OS X won't recognize, by the way).

  • REPORT output to possible files formats

    Hi Folks
    How can we tranasfer a REPORT output to any file like( .XLS, .XML, or to anyother possible file). Can u give all the possible file procedures.
    Thanks in advance.
    I wont forget to reward points.
    Regards,
    Ram

    Hi Ram,
    Use can very well use the function module 'GUI_DOWNLOAD'.
    The below code clarifies your doubt as how to mention the path in the selection screen.
    tables: mara.
    data: itab type standard table of mara.
    select-options: s_matnr for mara-matnr.
    parameters: filename like rlgrap-filename default 'C:\materail_details.xls'.        " download filename
    start-of-selection.
    select *
    from mara
    into table itab
    where matnr in s_matnr.
    perform file_download.
    *&      Form  file_download
          text
    -->  p1        text
    <--  p2        text
    form file_download .
    data: filename1 type string.
    filename1 = filename.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = filename1
       FILETYPE                        = 'DAT'
      tables
        data_tab                        = itab
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " file_download
    Here C:\material_details.xls is the path to save your file. In the same way you can save a text file also.
    Hope this clarifies your doubt.
    Regards
    Sayee

  • Is it possible to format a column to represent more than one key figure?

    Is it possible to have a column called "Forecast" and then position both revenue and cost key figures in the column in BEx?
    For example:
    type      forecast   actual
    revenue  90,000    95,000
    costs     80,000    85,000

    hi,
    if you use structure you cannot have key figures in the column
    Ramesh

Maybe you are looking for