XSLT date format using month with words

后端 未结 1 352
别那么骄傲
别那么骄傲 2021-01-28 21:52

Does anyone knows how to convert this date \'2018-09-24T00:00:00\' to this:

September 24th, 2018

using XSTL V1.0.

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-28 22:28

    Try:

    XML

    2018-09-24T00:00:00
    

    XSLT 1.0

    
    
    
    
    
        
            
            
                January
                February
                March
                April
                May
                June
                July
                August
                September
                October
                November
                December
            
             
            
            
            
                st
                nd
                th
            
            , 
            
        
    
    
    
    

    Result

    
    September 24th, 2018
    

    0 讨论(0)
提交回复
热议问题