Business rule to set field with Month/Year from date field

swnewton
Kilo Guru

I want to use a business rule to get the Month and Date from a Date field, and then populate a string field with those values.   Both fields are on the same table (time_card).

Thanks for the help!

25 REPLIES 25

Midhun1
Giga Guru

Hi Newton,



What do you want to populate?



Business Rules - ServiceNow Wiki


Once I get the month and year, I want to populate those values into a custom string field on the same table.   Example below:



Time card created... "week_starts_on" is 2016-02-21.



Set value of [custom_field] to "Feb 2016".


Did you get this working?


Yes I did...thank you so much!!!!