[Da...] Posted 7 hours ago Share Posted 7 hours ago Good morning, I would like to add the month to my file saving path. I managed to include the year, but I haven't figured out how to add the month. I have provided an image highlighting where I want to add the month to the folder structure/file name. Is it possible to do this? Thank you very much! Link to comment Share on other sites More sharing options...
[Ri...] Posted 5 hours ago Share Posted 5 hours ago d = getRecordHead("date") commaPos = inStr(d, " ") month = subStr(d, 1, commaPos - 1) display(month) Here is the quick and dirty way to isolate the month from the date. If you want it in numerical format, use the following. month = strElement(1, "/", getRecordHead("dateshort")) display(month) Link to comment Share on other sites More sharing options...
[An...] Posted 5 hours ago Share Posted 5 hours ago A couple options: // Year date().asDate.year // 2025 // Month (Number) date().asDate.monthIndex // 10 // Month (Word) date().asDate.monthName.asString // "October" // Day (Number) date().asDate.dayOfMonth // 14 // Day (Word) date().asDate.weekday.asString // "Tuesday" For your situation so far: // All together "C:\\" + date().asDate.year + "\" + date().asDate.monthIndex // C:\\2025\10 1 Link to comment Share on other sites More sharing options...
[Ri...] Posted 5 hours ago Share Posted 5 hours ago (edited) Well that was simpler. Hahahaha. Can we please for the love of god get better documentation for PCM? Edited 5 hours ago Link to comment Share on other sites More sharing options...
[Da...] Posted 5 hours ago Author Share Posted 5 hours ago It worked perfectly, thank you very much. Link to comment Share on other sites More sharing options...
[Ri...] Posted 4 hours ago Share Posted 4 hours ago (edited) getRecordHead("date")+"_"+getRecordHead("time") PCM that adds the current date and time to the file name. Never overwrite a file again. Edited 4 hours ago Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in