summaryrefslogtreecommitdiff
path: root/qa/qa/support/dates.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/support/dates.rb')
-rw-r--r--qa/qa/support/dates.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/support/dates.rb b/qa/qa/support/dates.rb
index 3d1f146730b..9e791bc11c5 100644
--- a/qa/qa/support/dates.rb
+++ b/qa/qa/support/dates.rb
@@ -11,6 +11,10 @@ module QA
current_date.next_month.strftime("%Y/%m/%d")
end
+ def thirteen_days_from_now_yyyy_mm_dd
+ (current_date + 13).strftime("%Y/%m/%d")
+ end
+
def format_date(date)
new_date = DateTime.strptime(date, "%Y/%m/%d")
new_date.strftime("%b %-d, %Y")