Farman Ali created SPARK-17431:
----------------------------------

             Summary: How to get 2 years prior date from currentdate using 
Spark Sql
                 Key: SPARK-17431
                 URL: https://issues.apache.org/jira/browse/SPARK-17431
             Project: Spark
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 2.0.0
            Reporter: Farman Ali


I need to derive 2 years prior date of current date using a query in Spark Sql. 
For ex : today's date is 2016-09-07. I need to get the date exactly 2 years 
before this date in the above format (YYYY-MM-DD).

Please let me know if there are multiple approaches and which one would be 
better.

Thanks



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to