You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Farman Ali (JIRA)" <ji...@apache.org> on 2016/09/07 11:29:20 UTC
[jira] [Created] (SPARK-17431) How to get 2 years prior date from
currentdate using Spark Sql
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org