KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Five easy pieces Re: Five easy pieces

  • davidcrossey

    Member
    March 3, 2022 at 12:00 am

    Here is my quick attempt for which I’m sure there is a much more elegant solution

    .dt.fmtd:{(`iso`dmy`mdy!({ssr[string x;”.”;”-“]};{“/” sv string `dd`mm`year$x};{“/” sv string `mm`dd`year$x}))[x] `date$y}