# How to set UNB-04\_01 and UNB-04\_02 values

**URL:** <https://techcommunity.softwareag.com/t/how-to-set-unb-04-01-and-unb-04-02-values/110474>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [March 2, 2013, 1:07am UTC](https://techcommunity.softwareag.com/t/how-to-set-unb-04-01-and-unb-04-02-values/110474 "2013-03-02T01:07:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Aggarwal](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/amit_aggarwal/32/643_2.png) [@Amit\_Aggarwal](https://techcommunity.softwareag.com/u/Amit_Aggarwal)\
**Post date:** [March 2, 2013, 1:07am UTC](https://techcommunity.softwareag.com/t/how-to-set-unb-04-01-and-unb-04-02-values/110474/1 "2013-03-02T01:07:49Z")

</div>

Hi experts,

I need to map current date in UNB-04\_01 and current time in UNB-04\_2 segments.  
I am using “addICEnvelopeEDIFACT” service to generate UNB segment but was not able to find where to set these UNB-04 values.

Could you please help me out.

Thanks,  
Amit

---

<div class="post-metadata">

**Author:** ![Tong\_Wang](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/tong_wang/32/410_2.png) [@Tong\_Wang](https://techcommunity.softwareag.com/u/Tong_Wang)\
**Post date:** [March 2, 2013, 1:49am UTC](https://techcommunity.softwareag.com/t/how-to-set-unb-04-01-and-unb-04-02-values/110474/2 "2013-03-02T01:49:04Z")

</div>

UNB4.1 is in the format YYMMDD  
UNB4.2 is 4 digits in the 24-hour clock format: 4:35 PM is 1635

BTW, the wm.b2b.edi.util:addICEnvelopeEDIFACT service generates both value using the current date of the system. it’s under the /addGroups branch.

---

<div class="post-metadata">

**Author:** ![Amit\_Aggarwal](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/amit_aggarwal/32/643_2.png) [@Amit\_Aggarwal](https://techcommunity.softwareag.com/u/Amit_Aggarwal)\
**Post date:** [March 2, 2013, 1:38pm UTC](https://techcommunity.softwareag.com/t/how-to-set-unb-04-01-and-unb-04-02-values/110474/3 "2013-03-02T13:38:47Z")

</div>

Got it now.  
Thanks for your reply. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:06pm UTC](https://techcommunity.softwareag.com/t/how-to-set-unb-04-01-and-unb-04-02-values/110474/4 "2021-04-02T15:06:11Z")

</div>

Closed on April 2, 2021, 3:06pm UTC


