JoinDate

Transform a numeric vector (Y M D ...) or simple matrix with three or more columns into a scalar or vector of Integers representing YYYYMMDD per item.

      100⊥3↑[⎕IO]⍉IA

Examples

      100⊥3↑[⎕IO]⍉ 2010 8 29 112
20100829
      100⊥3↑[⎕IO]⍉ ⊃(2010 8 29 112) (999 1 2)
20100829 9990102
      100⊥3↑[⎕IO]⍉⊃(2010 8 29 112)(999 1 2 0)(3000 1 1 0)(3000 12 31 0)
20100829 9990102 30000101 30001231

Compatibility

Checked with: APL2, APLX, Dyalog, NARS2000

See also: SplitDate

Mentor: KaiJaeger

Tags: <TransformDate> <DateAsInt>


CategoryPhrasesAll - CategoryPhraseDates

PhraseBook/JoinDate (last edited 2016-03-26 16:24:24 by KaiJaeger)