Options

date format

Adriaan2kAdriaan2k Member Posts: 159
edited 2007-06-21 in NAV Dutch speaking only
Ik heb een vraag over de (standaard) format van een datumveld. In een report zit een datumveld met de volgende SourceExpr: FORMAT("Sales Invoice Header"."Document Date",0,4)

De datum ziet er dan (bijv.) als volgt uit: 2. Januari 2007

Hoe kan ik zelf een format toevoegen of hoe kan ik bijv. de punt na het cijfer en een kleine beginletter van de maand realiseren ?

Als ik een andere format kies (bijv. FORMAT("Sales Invoice Header"."Document Date",0,1) ) dan ziet de datum er ook anders uit. Weten jullie waar Nav deze formats vandaan haalt of waar ik deze kan aanpassen ? Alvast bedankt voor de info.
mvg Adriaan

Comments

  • Options
    ErictPErictP Member Posts: 164
    Uit de help:
    For Dates, the Regional and Language Options in Windows is used to select the actual format that is used. The table below shows the Fields that will be used to build the various formats. This table, incidentally, corresponds to the Regional setting for a European country.
    Date Format Example
    <Closing><Day,2>-<Month,2>-<Year> 0 05-04-03
    <Closing><Day,2>-<Month,2>-<Year> 1 05-04-03
    <Day,2><Month,2><Year><Closing>D 2 050403D
    <Closing><Year>-<Month,2>-<Day,2> 3 03-04-05
    <Closing><Day>. <Month Text> <Year4> 4 5. April 2003
    <Closing><Day,2><Month,2><Year> 5 050403
    <Closing><Year><Month,2><Day,2> 6 030405
    <Day,2><Filler Character, >. <Month Text,3> <Year4> 7 5. Apr 2003
    XML format 9 2003-04-05

    Maar je kunt ook je eigen opmaak opgeven

    FORMAT(TODAY,0,'<Day,2>-<Month,2>-<Year4>') geeft voor vandaag 20-06-2007
  • Options
    Adriaan2kAdriaan2k Member Posts: 159
    ErictP wrote:
    Uit de help:
    For Dates, the Regional and Language Options in Windows is used to select the actual format that is used. The table below shows the Fields that will be used to build the various formats. This table, incidentally, corresponds to the Regional setting for a European country.
    Date Format Example
    <Closing><Day,2>-<Month,2>-<Year> 0 05-04-03
    <Closing><Day,2>-<Month,2>-<Year> 1 05-04-03
    <Day,2><Month,2><Year><Closing>D 2 050403D
    <Closing><Year>-<Month,2>-<Day,2> 3 03-04-05
    <Closing><Day>. <Month Text> <Year4> 4 5. April 2003
    <Closing><Day,2><Month,2><Year> 5 050403
    <Closing><Year><Month,2><Day,2> 6 030405
    <Day,2><Filler Character, >. <Month Text,3> <Year4> 7 5. Apr 2003
    XML format 9 2003-04-05

    Maar je kunt ook je eigen opmaak opgeven

    FORMAT(TODAY,0,'<Day,2>-<Month,2>-<Year4>') geeft voor vandaag 20-06-2007


    Bedankt. Ik ben nu een stukje verder. De maanden worden echter met hoofdletters geschreven, dit moet m.i. mogelijk zijn om met smallcaps te doen. Weet je misschien in welke tabel de datums staan vermeld ? Dan kan ik wellicht de NL-vertaling van de maanden met een kleine letter ingeven.
    mvg Adriaan
Sign In or Register to comment.