Iβm a police officer who is trying to lead my PD from the dark ages.
After taking a Motor Vehicle Report, I provided all the involved drivers a card that that states
- incident date
- report number
- date when a copy of the report can be picked up (10 business day after the incident date)
ππ’π―π₯πΈπ³πͺπ΅πͺπ―π¨ π°π― π’ π©π¦π’π·πΊ π₯πΆπ΅πΊ π€π’π³π₯ πͺπ΄ π―π°π΅ π·π¦π³πΊ π¦π§π§πͺπ€πͺπ¦π―π΅ π―π°π³ πͺπ΄ πͺπ΅ π€π°π΄π΅-π¦π§π§π¦π€π΅πͺπ·π¦.
I created and formatted a fillable form[1] that can be printed out using the printer in the Radio Car (π£ππ π‘ππ πππππ‘ππ π‘πππ‘ ππ π’π ππ π‘π πππππ‘ ππ’π‘ π π π’πππππ ).
I started to create a this shortcut that takes that will take the current Date and calculate what the date will be in 10 business days.
-
I assume I can do it with a bunch of βifβ statement but it seemed to clunky.
-
then I figured it could be done using RegEx and βMatch Text.β I just started to read βMastering Regular Expression,β but Iβm a slow reader and learner LOL.
Of course the OCD in me would love for the Shortcut to take into account federal holidays and adjust the output accordingly, but I wouldnβt even know how to do that. (Prob more βifβ values)
Can someone help me with taking a date, add 10 business days to the input and return MM/dd/yyyy?
I work with Cops, and in my 17-year career, I have learned that change is difficult. However, if you can lessen the friction it is more likely that it will be adopted.
I noticed when creating my fillable form that javascript can be added to entries. So Iβm hoping that when a coworker or I enter the incident date, the pickup date will be calculated using the script. β©οΈ