You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "UnussKhan (JIRA)" <ji...@apache.org> on 2016/07/05 11:17:11 UTC
[jira] [Issue Comment Deleted] (SPARK-16373) Joda Datetime , unable
to validate the year format
[ https://issues.apache.org/jira/browse/SPARK-16373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
UnussKhan updated SPARK-16373:
------------------------------
Comment: was deleted
(was: Thanks for the update. can you tell me where/under which section I need to raise this.)
> Joda Datetime , unable to validate the year format
> --------------------------------------------------
>
> Key: SPARK-16373
> URL: https://issues.apache.org/jira/browse/SPARK-16373
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Reporter: UnussKhan
> Priority: Minor
>
> I am using Joda DateTime function in scala to validate the year format as follows
> def isValidDateType(value: String, Date_format: String): Unit = {
> val fmt = DateTimeFormat forPattern Date_format
> val output = fmt parseDateTime value
> println(output)
> }
> isValidDateType("20156-06-06","yyyy-MM-dd")
> Output : 20156-06-06T00:00:00.000+05:30
> isValidDateType("201-06-06","yyyy-MM-dd")
> Output: 0201-06-06T00:00:00.000+05:53:28
> Its not validating the year format.
--
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