<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi! If you’re using vtiger 7.4 you have a new expression regex for “update fields” task so that you can parse date fields according to your needs. I hope it helps. <br><br><div dir="ltr"><span style="border-collapse: separate; "><div style="word-wrap: break-word; "><span style="border-collapse: separate; "><div style="word-wrap: break-word; "><span style="border-collapse: separate; "><div style="word-wrap: break-word; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><span style="border-collapse: separate; "><div style="word-wrap: break-word; "><span style="border-collapse: separate; "><div style="word-wrap: break-word; "><span style="border-collapse: separate; "><div style="word-wrap: break-word; "><span style="border-collapse: separate; "><div style="word-wrap: break-word; "><span style="border-collapse: separate; "><div style="background-color: rgba(255, 255, 255, 0); word-wrap: break-word; "><div class="ApplePlainTextBody" style="font-family: Helvetica; font-size: 14px; -webkit-text-size-adjust: auto;">_______________<br><br>Angelo Paglialonga<br>Consulente per soluzioni CRM ad alto ROI.<br><br>Telefono: 3386077866<br>Skype: angelo.paglialonga<br>Web: https://www.angelopaglialonga.com</div><div class="ApplePlainTextBody" style="font-family: Helvetica; font-size: 14px; -webkit-text-size-adjust: auto;"><br></div></div></span></div></span></div></span></div></span></div></span></span></span></span></span></span></span></span></span></span></span></div></span></div></span></div></span></div><div dir="ltr"><br><blockquote type="cite">Il giorno 28 ago 2021, alle ore 21:20, socialboostdk <socialboostdk@gmail.com> ha scritto:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi there,<div><br></div><div>I'm trying to make a report with weekly data. Ie. how many deals are won every week, etc., without building a custom function.</div><div><br></div><div>I can't 100% figure out how to group them by weeks, so my thought was to make a new field called Weeknumber and then calculate the week number in that via a workflow with an "update field" expression. I could accept just having ie the amount of days gone this year and just divide with 7 for the week number.</div><div><br></div><div>But can I actually access the days/months/year of a date field in the expressions? I know there are several built-in date functions, but cant see that any of these can solve this case.</div><div><br></div><div>Thank you for any input :)</div><div><br></div><div><br></div></div>
<span>_______________________________________________</span><br><span>http://www.vtiger.com/</span></div></blockquote></body></html>