How to format the date in rss view rss/xml pages

I am the consumption of some RSS FEED and I was wondering how can I change the format for the way the date is displayed... for example to only show this 20/02/2009 or it no longer displays the hour, it was published... Thank you

whatisgood wrote:

But is there a way to change this as a preference or a framework of Dreamweaver?

If there was, I would have used that rather than offer a solution of code.

XSLT is a complex formatting language markup. XSLT 2.0 has the date format functions, but they are not supported by the parser used in the XSL transformation server behavior.

To be honest, while the XSL transformation server behavior does a good job, you can consume a RSS feeds with just a few lines of code with PHP 5.2. Try this:

channel->item, 0, 5);
foreach ($first5 as $item) {
     echo "

$item->title

"; preg_match('/(?:\w{3},\s)?\d{1,2}\s\w{3}\s\d{2,4}/', $item->pubDate, $m); echo isset($m[0]) ? "

$m[0]

" : ''; echo "

$item->description

"; } ?>

Retrieves the first five items of the RSS feeds from the BBC, which strips the pubDate of leave. It uses SimpleXML and SPL iterators.

The code is very advanced, but it is just one example of the type of thing that you can get if you're ready to dive into the code and do not always rely on Dreamweaver does everything for you.

Tags: Dreamweaver

Similar Questions

  • How to format the data to a custom group

    Hi all

    I have a PivotTable with actual expenditures and Budget as some accounts and columns in the rows. Since I'm on the hierarchical column of account, I created custom groups for accounts using the component stages of selection. For example, I created a new group called Profit to combine 3 different accounts of profits and display a result row.

    Now I want to format the data for the group to profit. I right-click on the Profit Group, choose to change the Group and click the Format button on the lower left corner. I add a shape, for example the borders. When I now discover the PivotTable, borders have been applied to the label of the group, so the word Profit is now defined. However, the values in the columns of actual expenditures and Budget have not a border. Don't know what Miss me, but I want both the group label and the values to be formatted in the same way.

    How can I formatting the data values for the custom group?

    Hi user,

    Expected behavior, it won't format the actual values and the Budget. Only the group will be formatted.

    Kind regards
    DpKa

  • How to format the data back of JMX

    I want to fomat dates back to JMX on foglight Server (5.6.5).

    "Ex: convert date format 'long' ' String (PST).

    Also, can I format the data on the dashboard in a different format?

    Ex: Covert "MM/DD/YYY" to "DD-MM-YY".

    I am unable to make use of 'Deriverd' but you need to know if it is possible for data formatting with out creating "Derived Metrics"

    Thank you.

    As usual, in Foglight, there are several ways of doing things, and most things are possible.

    Remember that the date you see is probably not a string format, but a java rendering Date (similar to what you see) or Timestamp objects.

    What you are looking for on a dashboard is a different rendering engine, an object that converts the presentation of the data from one format to another.

    There are many kinds of converters that come with Foglight, including fully customizable Date converters.

    The model on a Date Converter personal property can be used to do almost anything.

  • How to access the data of all users of a page?

    Hi all, I'm new to APEX and have a query.

    I have installed APEX on my local machine, create a workspace and added a few users to roles.

    I'm creating an application, similar to a library application, where I have a table that stores information of books (BOOK_ID, BOOK_NAME, etc.). I would like to create another BOOK_USER table with two columns BOOK_ID and USER_ID. BOOK_ID refers to the BOOKS table and I want to USER_ID to refer to the table that stores the information of the users of the workspace I use. Data entry would be a page that has two LOVs, one for the name of book (using BOOK_ID as value) and another for the user name (USER_ID, or another field APEX uses to store the ID of the user). I can do in APEX? I found ways to access and authenticate a user to a page, but how to get the data of all users in the workspace? In other words, how to get all the usernames in a LOV?

    As I am new to APEX, I would appreciate if anyone can guide me through the steps, or posting links to the tutorial, etc.

    I think you can do this by querying APEX_WORKSPACE_GROUP_USERS.

  • How to format the date/time field to pathern YYYY-MMM-DD

    Hello

    I'm on LC Designer ES2

    It is for the date format Date specifying, automatocaly view on my form.

    Think, how can I change display of the date to 2015-03-20 field. The default display 15/03/20

    Thanks fot all help

    Stone

    H, I empty the date/time field and recreate.

    Everiting is OK

    Thank you!!!

  • How to format the date/time display tips?

    For those of you who know not:

    One of the attributes in VO is of type Date. To display the date in the format ' 10/25/2009 23:45 ', I only managed to display "10/25/2009-11:45" with only the slightest idea of the few examples provided to view tips when you do the formatting (format mask that I use is DD/MM/YYYY HH: mm). "." I'd appreciate it if someone could give advice how to display the part of the mask format AM/PM. Or better yet, to direct me towards a source of reference for this formattnig.

    Thank you!


    Newman

    Newman,

    As suggested by Puthanampatti, you must use 'a' in the date pattern display AM/PM.
    You can find date and time patterns in [doc API SimpleDateFormat | http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html] who described on letters to use for each model that you can also use with hints of display attribute in VO.

    Jean Lou

  • How to format the date?

    Hi all

    I use JDev 10 g.

    And I have a string like 'My Sep 19 00:00:00 IST 2009'. I want this date to be converted
    format of Date Oracle Houston as: "MM/dd/yyyy".

    Please help me how can I achieve this. I tried with the method oracle.jbo.domain.Date.formatText)
    but no use, it throws an exception.

    Thank you
    Isabelle Sanjaykar

    Sanjaykar,

    Have you read [url http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html] the javadocs for impossible? You must pass a string to its constructor, which is the format used by your channel.

    As an indicator, your string starts with'D EEE MMM' - read the javadocs and you can provide the rest of the chain.

    John

  • How to format the data below


    Hi, I have the following data in the rows, but how can I format in below format using SQL or PL/SQL

    Examples of data


    create table test_temp (invoice_num varchar2 (20), gl_date date, amount, type_of_inv varchar2 (2));

    insert into test_temp values ('1000765', 30 June 2013 ", 800," DM");

    insert into test_temp values ('1001767', 1 July 2013 ', 1000, "DM");
    insert into test_temp values ('1001789', 3 July 2013 ', 1000, "DM");
    insert into test_temp values ('1001874', 10 July 2013 ', 500, "DM");
    insert into test_temp values ('1001876', 11 July 2013 ', 500, "DM");

    insert into test_temp values ('1001768', 1 July 2013 ', - 800, 'CM');
    insert into test_temp values ('1001769', 2 July 2013 ', - 1500, 'CM');
    insert into test_temp values ('1001783', 2 July 2013 ', - 1000, 'CM');

    insert into test_temp values ('1001875', 11 July 2013 ', - 500, 'CM');


    Select a.* from (select gl_date, invoice_num, type_of_inv, quantity of test_temp where type_of_inv = 'DM'
    Union
    Select invoice_num, gl_date, type_of_inv, amount of test_temp where type_of_inv = 'CM') a
    order of a.type_of_inv, a.gl_date, a.amount


    invoice_num gl_date amount type_of_inv
    1001768 1 JULY 13-800 CM
    1001769 2 JULY 13 CM-1500
    1001783 2 JULY 13-1000 CM
    1001875 11 JULY 13-500 CM
    1000765 30 JUNE 13 DM 800
    1001767 1 JULY 13 DM 1000
    1001789 3 JULY 13 DM 1000
    1001874 10 JULY 13 500 DM
    1001876 11 JULY 13 500 DM

    -output must be below the order by gl date

    Choose the cm and apply against DM order by gl date


    1001768 CM is applied on DM 1000765 amount - 800 + 800 = 0

    CM 1001769 is applied on DM 1001767 amount - 1500- + 1000 = 500

    CM 1001769 is applied on DM 1001789 amount - 500 + 1000 = 500

    CM 1001783 is applied on DM 1001789 amount-1000 + 500 = - 500

    CM 1001783 is applied on DM 1001874 amount - 500 + 500 = 0

    CM 1001875 is applied on DM 1001876 amount - 500 + 500 = 0

    The logic is less than

    In the test_temp table, I have my two CM and DM stored,

    I have to write a query, or a PL/sql program to get the below output.
    The logic to retrieve the output here is as follows

    Get the first CM and get the first DM to add the amount of CM with amount of DM up to its sum (amount of cm + size DM) = 0
    with less date GL

    who will give me the first production line

    1001768 CM is applied on DM 1000765 amount - 800 + 800 = 0, now I can take the next CM because its amount is zero


    get the next CM with less gl date to apply against the DM

    1001769 CM is applied against 1001767 with amounts - 1500- + 1000 = 500

    then my amount after worn here is still not zero if the same note of credit (on the left - ve amount of CM)
    must be applied on the next DM


    1001769 CM is applied against 1001789 with amount (-500 + 1000) = + 500

    so in this case (+ amount is from left to right on DM), get the new CM

    1001783 CM must be applied on DM even because always the amount was left with amounts DM 1001789 (-1000 + 500 = 500)

    now, in this case - ve amount is left cm

    so even CM must be applied on the next DM

    1001783 is applied on the next 1001874 DM with amounts-500 (to the left of the previous) + 500 (amount of this DM) = 0
    (In this case sum is zero, so I can choose new CM)

    get next CM 1001875 and applied on the next 1001876 DM with amounts-500 + 500 = 0

    Hope this is clear, or let me know please

    Thanks a ton of Frankkulash...

  • How to recover the date in a specific format on button clicked?

    I'm trying to update the date in a data template on a user clicks the button, but unfortunately the Date() function gives just a format long unncesseray.  I want just the day/month/year (i.e. 10/09/2013).  How to change the Date() function to achieve this?

     Button {
                                        leftPadding: 30
                                        rightPadding: 30
                                        preferredWidth: 150
                                        horizontalAlignment: HorizontalAlignment.Center
                                        imageSource: "asset:///images/ic_add.png"
                                        onClicked: {
    
                                            rootItem.ListItem.view.getApp().updateObject(ListItemData.customerID, ListItemData.name, ListItemData.description, Date(), parseInt(ListItemData.lat) + 1, ListItemData.lon, ListItemData.categorySelect, ListItemData.mapurl)
                                        }
                                    }
    

    Thanks in advance.  Solutions and love will see for those who help.

    Kind regards

    Brandon

    I was actually able to find a workaround simpler.  I just used objects attached within the key and attached to a date function:

    Button {
    
                                        imageSource: "asset:///images/ic_add.png"
                                        onClicked: {
    
                                            rootItem.ListItem.view.getApp().updateObject(ListItemData.customerID, ListItemData.name, ListItemData.description, datefield3.text, parseInt(ListItemData.lat) + 1, ListItemData.lon, ListItemData.categorySelect, ListItemData.mapurl)
    
                                        }
                                        attachedObjects: [
                                            Label {
                                                id: datefield3
                                                text: {
                                                    var today = new Date();
                                                    (today.getMonth() + 1) + "/" + today.getDate() + "/" + (today.getFullYear() - 2000);
                                                }
    
                                            }
                                        ]
                                    }
    
  • How to use the date with the report parameter format

    Hi all

    How to use the date format with this tag function,

    <? param@begin:P_FROM_DATE? > <? $P_FROM_DATE? >

    This date of form source of report and setting is coming as this 2012/11/01 00:00:00.

    So now I need this in MY-DD-YYYY marker. I tried like this..? param@begin:P_FROM_DATE? > <? $format - date: P_FROM_DATE; ' DD-MON-YYYY '? >

    but its giving error. Can someone pls how to convert to the format of date custom.

    Thanks and greetings
    Srikkanth.M

    Problem solved.

    REF this link

    Date Format of XML

  • How to find the date item was my favorites on Mozilla Firefox

    on system moot bookmark how to find the date of the bookmark?

    In bookmarks menu select organize bookmarks to open the bookmarks library. In the bookmarks library, click views, and then display the columns and then added. This will display a column showing when a bookmark has been added.

  • Camileo S20 - How to display the date and time

    Hi, all. I got as Christmas present the Camileo S20, and I am not able to view the date and time in the video. In the manual is no reference on this subject, only how to set the date and time. But what is the intention to set the date and time in the camera, if it is not possible to display video?

    Hello

    Have you checked the user manual of your TV cam?

    If it of possible to display the data and the time you can find in your user manual how to do this. It always interesting to read ;) s

  • How to format the SD card?

    Android 4.0 will erase all data on my phone, right?

    I want to format the SD card, too, because some setting or cache is stored on it as well.  When and how should I do this?

    Here's how to format the sd card
    Settings > storage > unmount sd card > remove sd card

    Don't forget to mark the right answer and the useful answer

  • How to disable the built-in PDF Viewer and use another Viewer at all times?

    How to disable the built-in PDF Viewer and use Adobe Reader to view the PDF files, without having to set this preference, whenever I open Firefox? The default setting to "Use Adobe Acrobat (in Firefox)". Thank you.

    It's strange. The integrated Viewer - Viewer by default - is described by the expression 'Preview in Firefox' and you will have changed to "Use Adobe Acrobat (in Firefox)".

    Well... you or an add-on or another program on your system must be changed.

    What happens if you disable the Adobe Acrobat plugin (not the extension to create a PDF file, leave it active). Here's how you can try this:

    Open the page modules using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. On the right side, find "Adobe Acrobat" and change the permission 'never enable '.

    Then in the Options page, Applications Panel, change your preference for "Portable Document Format (PDF)" to "Always ask" so you get the dialog box to download instead of the PDF, open in a tab.

    It sticks?

  • How to convert the date in milliseconds?

    Hi all

    Can I know how to convert the date in milliseconds?

    My current datetime like this Formate

    QDateTime::currentDateTime (m:System.NET.SocketAddress.ToString ("MMMM dd, yyyy HH"))

    Seconds since January 1, 1970

    http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toTime_t

    Sinds milliseconds January 1, 1970

    http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toMSecsSinceEpoch

Maybe you are looking for