Answers for "filter by timestamp scala"

0

filter by timestamp scala

scala> df.filter(to_date(df("someTimeStamp")) === "2020-01-01").show
+-------+-------------------+
|someCol|      someTimeStamp|
+-------+-------------------+
|      1|2020-01-01 23:00:01|
|      2|2020-01-01 00:00:00|
|      3|2020-01-01 12:54:00|
+-------+-------------------+
Posted by: Guest on April-01-2021

Browse Popular Code Answers by Language