Hi @arkiboys ,
Thank you for posting query in Microsoft Q&A Platform.
As per my understanding you are trying to compile path by getting year, month and day parts from current data time in python. Please correct me if I am wrong.
In Python we should consider importing
datetime
module to work with dates.
Please check below screenshot to get better understanding of logic to write.
Code used in above image:
import datetime
path = 'container/foldername/output/'
currentDateTime = datetime.datetime.now() #gives you current date time
year = currentDateTime.year
month = currentDateTime.month
day =currentDateTime.day
fullpath = path + 'year=' + str(year) + '/month=' + str(month) + '/day=' + str(day)
print(fullpath)
Hope this helps. Please let us know if any further queries.
-----------------
Please consider hitting Accept Answer
button. Accepted answers help community as well.