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
ShortcutID
447
Version
Version
ShortcutName
Date Calculator
SHORTCUTS
Run
LightningUpdate
Input
Choose Variable
Show While Running
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
End If
Otherwise
End If
SCRIPTING
Choose from Menu
“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
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
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
DaysBetween
Days
Show Cancel Button
➕/➖ 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
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
Add Number of Days➕
CALENDAR
Add
0
seconds
from
Date
CALENDAR
Format
Date
Options Under Construction
VARIABLES
CALENDAR
Format
Date
Options Under Construction
SCRIPTING
Show alert
New Date
Formatted Date
Title
Show Cancel Button
Subtract Number of Days➖
CALENDAR
Add
0
seconds
from
Date
CALENDAR
Format
Date
Options Under Construction
VARIABLES
CALENDAR
Format
Date
Options Under Construction
SCRIPTING
Show alert
New Date
Formatted Date
Title
Show Cancel Button
End Menu
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
Add Number of Days➕
CALENDAR
Add
0
seconds
from
Date
CALENDAR
Format
Date
Options Under Construction
VARIABLES
CALENDAR
Format
Date
Options Under Construction
SCRIPTING
Show alert
New Date:
Formatted Date
Title
Show Cancel Button
Subtract Number of Days➖
CALENDAR
Add
0
seconds
from
Date
CALENDAR
Format
Date
Options Under Construction
VARIABLES
CALENDAR
Format
Date
Options Under Construction
SCRIPTING
Show alert
New Date
Formatted Date
Title
Show Cancel Button
End Menu
End Menu
“Working Days” Calculator👨🏻‍💻

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 months 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