Visualizzazione dei risultati da 1 a 3 su 3

Discussione: xsl problema con date

  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2006
    Messaggi
    245

    xsl problema con date

    Ciao a tutti io ho un problema, nn so se mi potete aiutare... Dovrei visualizzare una data (la prendo da un xml) che originariamente e in formato mysql, ma io la vorrei visualizzare in formato gg.mm.aaaa. Come posso fare??? Aiuto...

  2. #2
    cosa significa in formato mysql?
    con xpath puoi fare queste cose

  3. #3

    Re: xsl problema con date

    FONTE: http://www.w3schools.com/xpath/xpath_functions.asp

    The default prefix for the function namespace is fn:, and the URI is: http://www.w3.org/2005/02/xpath-functions.

    fn:substring(string,start,len)
    fn:substring(string,start)

    Returns the substring from the start position to the specified length. Index of the first character is 1. If length is omitted it returns the substring from the start position to the end

    Example: substring('Beatles',1,4)
    Result: 'Beat'

    Example: substring('Beatles',2)
    Result: 'eatles'
    Ciao. Esiste la funzione XPath "substring" che permette appunto di manipolare le stringhe. Spero che quanto ti vado a dire possa esserti utile.

    Nelo specifico la funzione "substring", restituisce la parte di stringa presente tra la posizione iniziale specificata (a partire dal primo carattere il quale ha indice 1) e lunga quanto desiderato, fino a fine stringa.

    Es.:
    > substring('AAAAMMGG',5,2) = 'MM'

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.