Jump to content
  • 0

datum omzetten


Gerard Exis

Question

1 answer to this question

Recommended Posts

  • 1
Posted

Dit kan best uitgelegd worden met een formuletje:

 

Let (
[
tekst = "2 jan. 2018" ;
tekstdelen = substitute ( tekst ; " " ; ¶ ) ; // hierdoor krijg je een lijstje, in dit geval "2¶jan.¶2018" ;
dagnummer = GetAsNumber ( GetValue ( tekstdelen ; 1 ) ) ; // deze is simpel
jaarnummer = GetAsNumber ( GetValue ( tekstdelen ; 3 ) ) ; // deze ook
maandnummer = Ceiling ( Position ( "jan.feb.maa.apr.mei.jun.jul.aug.sep.okt.nov.dec." ; GetValue ( tekstdelen ; 2 ) ; 1 ; 1 ) / 4 ) // kijk hier goed na hoe je maanden heten
] ;
Date ( maandnummer ; dagnummer ; jaarnummer ) 
)

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...