[{"data":1,"prerenderedAt":30},["ShallowReactive",2],{"snippet-stepfunctions-intrinsic-function-getyymmfromcontext":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":17,"meta":19,"resources":20,"services":21,"snippets":23,"stem":27,"tags":20,"type":28,"__hash__":29},"snippets\u002Fsnippets\u002Fstepfunctions-intrinsic-function-getyymmfromcontext.json","Get YYMM format from the EnteredTime context object in Step Function",[7],"content\u002Fcontributors\u002Fmarcia-villalba.json","Using intrinsic functions get an item formatted YYMM from the context object EnteredTime.","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Fstepfunctions-intrinsic-function-getYYMMfromContext",{"headline":14,"text":15},"How it works",[16],"Using Step Functions intrinsic functions you can get from the context object EnteredTime an item formatted like YYMM. This way you don't need to use a lambda function to produce that. This is using many nested functions to parse the EnteredTime variable that looks like this: 2019-03-26T20:14:13.192Z. First it splits it using the T and then it gets the first two element from the first array.",[18],"JSON",{},null,[22],"stepfunction",[24],{"title":25,"language":18,"code":26},"Use intrinsic functions to get an item formatted YYMM from the context object EnteredTime","States.Format('{}{}', States.ArrayGetItem(States.StringSplit(States.ArrayGetItem(States.StringSplit($$.State.EnteredTime, 'T'), 0), '-'), 0),States.ArrayGetItem(States.StringSplit(States.ArrayGetItem(States.StringSplit($$.State.EnteredTime, 'T'), 0), '-'), 1))","snippets\u002Fstepfunctions-intrinsic-function-getyymmfromcontext","Step Functions intrinsic functions","KPeQWvAn9WVDf_7ER8hurK56qOwe-lb_UnLdrzpPakk",1792665263202]