Filler Character in Format

ta5ta5 Member Posts: 1,164
Hello

Are the following to format strings the same?

1)
'<Year4><Month,2><Day,2><Hours24,2><Filler Character,0><Minutes,2><Seconds,2>:<Thousands,3><Filler Character,0>'

2)
'<Year4><Month,2><Day,2><Hours24,2><Filler Character,0><Minutes,2><Seconds,2>:<Thousands,3><Filler Character,0>'

Additional question: Although there is no filler character for <Day,2>, March evaluates to 03, not to 3. Maybe the filler character for <Hours24,2> is not really needed too?

Thanks in advance
Thomas

Comments

  • kinekine Member Posts: 12,562
    If the result is number, the filler character is 0 by default. If the result is text, the space is default filler. It means that you need filler characters just in special cases...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ta5ta5 Member Posts: 1,164
    Thanks for explaining.
    In this case, the online help of 4.02 uses the filler character altough it's not needed, isn't it :?
    <Hours24,2><Filler Character,0><Minutes,2><Seconds,2> <Second dec.><Comma,.>T ==> 043555.553T
Sign In or Register to comment.