I have a datetime tag the users pick up with a calendar object.
Inside a script (defined in a script module) I wanto to convert it to format YYYYMMDD to pass as a parameter of a query to my sql server
Inside the script I get the value with system.tag.read().value
If I convert using str() I get the full string including time and timezone.
I tried with .strftime but is not working