Created
July 20, 2020 19:28
-
-
Save EvgenJin/22118e4630126717d65e1a5e06823816 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// конверт даты приходит "yyyy-MM-dd" выходит "yyyy-MM-dd'T'HH:mm:ss.SSS" | |
def convertDate (date_str) { | |
if (date_str != "") { | |
date = Date.parse("yyyy-MM-dd",date_str) | |
return date.format("yyyy-MM-dd'T'HH:mm:ss.SSS") | |
} else { | |
return "1900-01-01" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment