spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "farman.bsse1855" <farman....@zigron.com>
Subject How to get 2 years prior date from currentdate using Spark Sql
Date Wed, 07 Sep 2016 11:27:20 GMT
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



--
View this message in context: http://apache-spark-developers-list.1001551.n3.nabble.com/How-to-get-2-years-prior-date-from-currentdate-using-Spark-Sql-tp18875.html
Sent from the Apache Spark Developers List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org


Mime
View raw message