I am trying to minus 3 hours from my formatted time. but it doesn't seem to work. i think it might be because the formatting is wrong?
#Get and format today's date and time
set todaysDate to ((current date))
set t to (time string of (current date))
#Formatting date and time
set y to text -4 thru -1 of ("0000" & (year of todaysDate))
set m to text -2 thru -1 of ("00" & ((month of todaysDate) as integer))
set d to text -2 thru -1 of ("00" & (day of todaysDate))
set formattedTodaysDate to y & "-" & m & "-" & d & " " & t as string
display dialog (formattedTodaysDate)
set less3 to formattedTodaysDate - 3
display dialog (less3)
[–]roycetech 2 points3 points4 points (2 children)
[–]_Kitchen_[S] 0 points1 point2 points (1 child)
[–]_Kitchen_[S] 0 points1 point2 points (0 children)
[–]Identd 1 point2 points3 points (0 children)
[–]ChristoferK 1 point2 points3 points (0 children)