• djDateTextBox does show correct date-format when document is opened for read.

    By Johnny Haugen Sørgård 7 years ago

    Could not find any way of changing how the djDateTextBox show date when document is opened for read.

    <xe:this.converter>
        <xp:convertDateTime type="date" dateStyle="short"></xp:convertDateTime>
    </xe:this.converter>
    

    On servers norwegian configuration of both server and client the format should be dd.MM.yy, but it is shown with the format yyyy-MM-dd

    Workaround - show computedField when in read-mode:

    <xp:text escape=“true” id=“computedField1”

    value="#{currentDocument.DatoDT}"
    rendered="#{javascript:!currentDocument.isEditable()}">
    <xp:this.converter>
        <xp:convertDateTime dateStyle="short">
        </xp:convertDateTime>
    </xp:this.converter>
    


    <xe:djDateTextBox id=“djDateTextBox1” value=“#{currentDocument.DatoDT}”

    rendered="#{javascript:currentDocument.isEditable()}">
    <xe:this.converter>
        <xp:convertDateTime type="date" dateStyle="short"></xp:convertDateTime>
    </xe:this.converter>
    

    Discovered this defect after upgrade to 9.0.1FP8 where the standard date-picker fails on android 6/chrome.