spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "farman.bsse1855" <>
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


View this message in context:
Sent from the Apache Spark Developers List mailing list archive at

To unsubscribe e-mail:

View raw message