Jump to content
  • 0

Datum omzetten


Gerard Exis

Question

Posted

Hoe kan ik een datum als 2018-07-09 (tekstveld) omzetten naar 09-07-2018 (datumveld).

wil de looptijd van artikelen zien, wil de verkoopaantallen per artikel van de laatste 60 dagen zien.

 

alvast dank voor de input.

 

2 answers to this question

Recommended Posts

  • 0
Posted

Als alle invoer er werkelijk uitziet zoals jij zegt, zou je deze formule kunnen gebruiken:

Let ( [ 
  y = left ( tekstveld ; 4 ) ; 
  m = Middle ( teksveld ; 6 ; 2 ) ; 
  d = Right ( tekstveld ; 2 )
] ; 
  Date ( m ; d ; y ) 
)

Een andere mogelijkheid is:

Let ( [ 
  x = Substitute ( tekstveld ; [ "-" ; ¶ ] ; [ "/" ; ¶ ] ; [ "." ; ¶ ] ) ; 
  y = GetValue ( x ; 1 ) ; 
  m = GetValue ( x ; 2 ) ; 
  d = GetValue ( x ; 3 ) 
] ; 
  Date ( m ; d ; y ) 
)

Deze laatste is ietsje veiliger i.m.o.

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...