Login About Gallery
Date Calculator
COMMENT
‎Developed By: Twitter: @i_7amza & Reddit: u/Mimiru_
COMMENT
‎This shortcut Has three functions/features: ❶ Calculate the number of days between two dates. ❷ Add/subtract number of days to date, which then output the new date. ❸ Calculate the number of “Working Days” between two dates.
COMMENT
‎هذه الأداة تقوم بثلاثة وظائف: ❶ حساب عدد الأيام بين تاريخين. ❷ حساب التاريخ الجديد بعد إضافة أو طرح عدد الأيام على التاريخ الأوّل. ❸ حساب عدد أيام العمل بين تاريخين.
NUMBER
‎2.1
VARIABLES
‎Set variable ‎Version ‎to ‎Input
COMMENT
‎In below "Text" action: Enter "Yes" if you want to use (LightningUpdate) Enter "No" or leave it empty to skip this part.
TEXT
‎Yes
SCRIPTING
‎If ‎Input ‎Condition
SHORTCUTS
‎Get my shortcuts
SCRIPTING
‎If ‎Input ‎Condition
COMMENT
‎LightningUpdate Made by K҉I҉N҉D҉R҉E҉D҉C҉A҉S҉H҉E҉W҉ 9 8 Look at his other Shortcuts: https://routinehub.co/user/kindredcashew981
DICTIONARY
SHORTCUTS
‎Run ‎LightningUpdate
Input
‎Choose Variable
Show While Running
SCRIPTING
‎Otherwise
SCRIPTING
‎Show alert ‎LightningUpdate is missing!
Title
‎LightningUpdate is missing!
Show Cancel Button
URL
‎https://routinehub.co/shortcut/2826
SAFARI
‎Open ‎Safari web page
SCRIPTING
‎End If
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
SCRIPTING
‎Choose from Menu
SCRIPTING
‎“Days Between” Calculator📆
SCRIPTING
‎Ask ‎Start Date
Input Type
‎Date
Default Answer
‎Time
CALENDAR
‎Format ‎Date
‎Options Under Construction
VARIABLES
‎Set variable ‎startDate ‎to ‎Input
SCRIPTING
‎Ask ‎End Date
Input Type
‎Date
Default Answer
‎Time
CALENDAR
‎Format ‎Date
‎Options Under Construction
VARIABLES
‎Set variable ‎endDate ‎to ‎Input
CALENDAR
‎Get time between ‎First Date ‎and ‎Second Date ‎in ‎Days
SCRIPTING
‎If ‎Input ‎Condition
MATHS
‎Number ‎× ‎-1.0
‎Options Under Construction
VARIABLES
‎Set variable ‎DaysBetween ‎to ‎Input
VARIABLES
‎Get ‎endDate
VARIABLES
‎Set variable ‎Date1 ‎to ‎Input
VARIABLES
‎Get ‎startDate
VARIABLES
‎Set variable ‎Date2 ‎to ‎Input
SCRIPTING
‎Otherwise
VARIABLES
‎Set variable ‎DaysBetween ‎to ‎Input
VARIABLES
‎Get ‎startDate
VARIABLES
‎Set variable ‎Date1 ‎to ‎Input
VARIABLES
‎Get ‎endDate
VARIABLES
‎Set variable ‎Date2 ‎to ‎Input
SCRIPTING
‎End If
VARIABLES
‎Get ‎Date2
CALENDAR
‎Get time between ‎First Date ‎and ‎Second Date ‎in ‎Total Time
VARIABLES
‎Set variable ‎Total_Time ‎to ‎Input
SCRIPTING
‎Show alert ‎DaysBetween ‎ Days
Title
‎[{'class': 'magic', 'value': 'DaysBetween', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}, {'value': ' Days', 'class': 'text'}]
Show Cancel Button
SCRIPTING
‎➕/➖ Number of Days
SCRIPTING
‎Ask ‎Enter The Date
Input Type
‎Date
Default Answer
‎Time
CALENDAR
‎Format ‎Date
‎Options Under Construction
VARIABLES
‎Set variable ‎Date+ ‎to ‎Input
SCRIPTING
‎Choose from Menu
SCRIPTING
‎Enter Number of (Years, Months & Days)
SCRIPTING
‎Ask ‎Enter Number of Years
Input Type
‎Number
Default Answer
‎0
MATHS
‎Number ‎× ‎365.0
‎Options Under Construction
VARIABLES
‎Set variable ‎Years ‎to ‎Input
SCRIPTING
‎Ask ‎Enter Number of Months
Input Type
‎Number
Default Answer
‎0
MATHS
‎Number ‎× ‎30.416999999999994
‎Options Under Construction
VARIABLES
‎Set variable ‎Months ‎to ‎Input
SCRIPTING
‎Ask ‎Enter Number of Days
Input Type
‎Number
Default Answer
‎0
VARIABLES
‎Set variable ‎Days ‎to ‎Input
VARIABLES
‎Get ‎Years
MATHS
‎Number ‎+ ‎Months
‎Options Under Construction
MATHS
‎Number ‎+ ‎Days
‎Options Under Construction
VARIABLES
‎Set variable ‎Total_Days ‎to ‎Input
VARIABLES
‎Get ‎Date+
SCRIPTING
‎Choose from Menu
SCRIPTING
‎Add Number of Days➕
CALENDAR
‎Add ‎0 ‎seconds ‎from ‎Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
VARIABLES
‎Get ‎Adjusted Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
SCRIPTING
‎Show alert ‎New Date ‎Formatted Date
Title
‎[{'value': 'New Date ', 'class': 'text'}, {'class': 'magic', 'value': 'Formatted Date', 'glyph': '', 'UUID': 'B65CF745-2ED4-43BD-A2E4-3FA65E974171'}]
Show Cancel Button
SCRIPTING
‎Subtract Number of Days➖
CALENDAR
‎Add ‎0 ‎seconds ‎from ‎Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
VARIABLES
‎Get ‎Adjusted Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
SCRIPTING
‎Show alert ‎New Date ‎Formatted Date
Title
‎[{'value': 'New Date ', 'class': 'text'}, {'class': 'magic', 'value': 'Formatted Date', 'glyph': '', 'UUID': '04BFF35E-C876-478C-AF8E-33381E7F3C38'}]
Show Cancel Button
SCRIPTING
‎End Menu
SCRIPTING
‎Enter The Total Number of Days
SCRIPTING
‎Ask ‎Enter Number of Days
Input Type
‎Number
Default Answer
‎0
VARIABLES
‎Set variable ‎Total_Days ‎to ‎Input
VARIABLES
‎Get ‎Date+
SCRIPTING
‎Choose from Menu
SCRIPTING
‎Add Number of Days➕
CALENDAR
‎Add ‎0 ‎seconds ‎from ‎Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
VARIABLES
‎Get ‎Adjusted Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
SCRIPTING
‎Show alert ‎New Date: ‎Formatted Date
Title
‎[{'value': 'New Date: ', 'class': 'text'}, {'class': 'magic', 'value': 'Formatted Date', 'glyph': '', 'UUID': 'B9369776-721E-407B-94C1-F0CB3A95DD38'}]
Show Cancel Button
SCRIPTING
‎Subtract Number of Days➖
CALENDAR
‎Add ‎0 ‎seconds ‎from ‎Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
VARIABLES
‎Get ‎Adjusted Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
SCRIPTING
‎Show alert ‎New Date ‎Formatted Date
Title
‎[{'value': 'New Date ', 'class': 'text'}, {'class': 'magic', 'value': 'Formatted Date', 'glyph': '', 'UUID': '59A6D252-3145-4892-9363-FD2601F9A28C'}]
Show Cancel Button
SCRIPTING
‎End Menu
SCRIPTING
‎End Menu
SCRIPTING
‎“Working Days” Calculator👨🏻‍💻

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 3 years ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

103 more actions