Format datum

⌘K
  1. Home
  2. Alle flow Acties
  3. Berekeningen
  4. Format datum

Format datum

Frequentie gebruik: 
Moeilijkheidsgraad: 

De format datum actie is gemaakt om een datum te kunnen omzetten in een ander formaat. Uitgangspunt is dat de datum in het ISO formaat is opgevoerd.

Er zijn 3 instellingen mogelijk

  • Datum veld: Selecteer het veld waarin de datum inzit
  • AFAS formaat: Vink dit aan om de datum om te zetten naar het AFAS formaat.
  • Dynamisch formaat. Selecteer deze optie om een eigen formaat te bepalen
  • Formaat: Geef hier het formaat in dat je wilt krijgen
  • Output veldnaam: Het veld waarin het nieuwe veld wordt weggeschreven. (hoef nog niet te bestaan)
  • Input formaat (geavanceerd): Is jouw Input anders dan dd-MM-yyyy ? geef dan het input formaat op.
  • Locale (geavanceerd): Wanneer je bij formaat hebt gekozen voor bijvoorbeeld de tag “MMMM” of om de maandnaam te krijgen of “DDDD” kun je hier de taal opgeven. bijvoorbeeld nl-NL voor Nederlands of en-GB voor Engels.
  • Timezone: In uitzonderlijke gevallen wil je de tijdzone meegeven. Dit gebruik je als de tijd die je binnenkrijgt in een andere tijdzone is maar de tijdzone niet in de datum/tijd staat. Je kunt hier de tijdzone kiezen zoals UTC+4 of de locatie. Europe/Amsterdam of “Japan”. Het voordeel van deze manier t.o.v. de tijd +4 uur te doen is dat er rekening wordt gehouden met zomer/wintertijd indien van toepassing.


Voorbeeld

AFAS omzetting:

ISOdatum2022-08-08
NieuweDatum2022-08-08T00.00.00

Omzetting naar dd-MM-yyyy

ISOdatum2022-08-08
NieuweDatum08-08-2022

Omzetting naar DDDD met locale nl-NL

ISOdatum2022-08-08
NieuweDatummaandag 8 augustus 2022
Omzetting naar 08-08-2022

Omzetting naar “8 augustus 2022”

Alle tekens

We ondersteunen een heleboel tekens. De meest voorkomende zijn dd-MM-yyyy

  • dd : Dagnummer
  • MM : Maandnummer
  • yyyy : Jaar
TekenOmschrijvingVoorbeeld
Smillisecond, no padding54
SSSmillisecond, padded to 3054
ufractional seconds, functionally identical to SSS54
uufractional seconds, between 0 and 99, padded to 205
uuufractional seconds, between 0 and 90
ssecond, no padding4
sssecond, padded to 2 padding04
mminute, no padding7
mmminute, padded to 207
hhour in 12-hour time, no padding1
hhhour in 12-hour time, padded to 201
Hhour in 24-hour time, no padding9
HHhour in 24-hour time, padded to 213
Znarrow offset5
ZZshort offset+05:00
ZZZtechie offset500
ZZZZabbreviated named offsetEST
ZZZZZunabbreviated named offsetEastern Standard Time
zIANA zoneAmerica/New_York
ameridiemAM
dday of the month, no padding6
ddday of the month, padded to 206
cday of the week, as number from 1-7 (Monday is 1, Sunday is 7)3
cccday of the week, as an abbreviate localized stringWed
ccccday of the week, as an unabbreviated localized stringWednesday
cccccday of the week, as a single localized letterW
Mmonth as an unpadded number8
MMmonth as a padded number08
MMMmonth as an abbreviated localized stringAug
MMMMmonth as an unabbreviated localized stringAugust
MMMMMmonth as a single localized letterA
yyear, unpadded2014
yytwo-digit year14
yyyyfour- to six- digit year, pads to 42014
Gabbreviated localized eraAD
GGunabbreviated localized eraAnno Domini
GGGGGone-letter localized eraA
kkISO week year, unpadded14
kkkkISO week year, padded to 42014
WISO week number, unpadded32
WWISO week number, padded to 232
oordinal (day of year), unpadded218
oooordinal (day of year), padded to 3218
qquarter, no padding3
qqquarter, padded to 203
Dlocalized numeric date9-4-2017
DDlocalized date with abbreviated monthAug 6, 2014
DDDlocalized date with full monthAugust 6, 2014
DDDDlocalized date with full month and weekdayWednesday, August 6, 2014
tlocalized time9:07 AM
ttlocalized time with seconds1:07:04 PM
tttlocalized time with seconds and abbreviated offset1:07:04 PM EDT
ttttlocalized time with seconds and full offset1:07:04 PM Eastern Daylight Time
Tlocalized 24-hour time13:07
TTlocalized 24-hour time with seconds13:07:04
TTTlocalized 24-hour time with seconds and abbreviated offset13:07:04 EDT
TTTTlocalized 24-hour time with seconds and full offset13:07:04 Eastern Daylight Time
fshort localized date and time8/6/2014, 1:07 PM
ffless short localized date and timeAug 6, 2014, 1:07 PM
fffverbose localized date and timeAugust 6, 2014, 1:07 PM EDT
ffffextra verbose localized date and timeWednesday, August 6, 2014, 1:07 PM Eastern Daylight Time
Fshort localized date and time with seconds8/6/2014, 1:07:04 PM
FFless short localized date and time with secondsAug 6, 2014, 1:07:04 PM
FFFverbose localized date and time with secondsAugust 6, 2014, 1:07:04 PM EDT
FFFFextra verbose localized date and time with secondsWednesday, August 6, 2014, 1:07:04 PM Eastern Daylight Time
Xunix timestamp in seconds1407287224
xunix timestamp in milliseconds1,40729E+12
Geen oplossing? #
Was dit artikel nuttig voor jou? Ja Nee

How can we help?