Jump to content
  • 0

Opschonen import datumfout


sjuul

Question

Hallo,

 

Bij een recente import is er in een bestand een fout geslopen, waardoor het jaartal van de datum op 1905 staat, in plaats van 2005. Nu ben ik op zoek naar de juiste formule om 100 jaren op te tellen bij dit datumveld.

 

 

datum + (100 * Year ( datum ))

 

Werkt helaas niet..

Link to comment

2 answers to this question

Recommended Posts

  • 0

volgens mij moet dat lukken met de functie

 

Date (month ; day ; year )

 

dus

 

Date

(

month ( JouwDatumVeld ) ; Day ( JouwDatumVeld ) ; Year ( JouwDatumVeld ) + 100

)

 

 

Maar wat is je omslagjaar? (met andere woorden zitten er ook data in die wel het correcte jaar weergeven, bijv. 1909, 1970,...)?

 

PS de berekening corrigeert voor schrikkeljaren. Dus 29-2-2000 + 100 jaar = 1-3-2100

Link to comment

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