Code: Select all
GetDate>today
DatePart>today,D,strDay
mdl>strDay
Moderators: JRL, Dorian (MJT support)
Code: Select all
GetDate>today
DatePart>today,D,strDay
mdl>strDay
I don't think it is answered, but perhaps I am confused. If I take, Parsnipnose3000, your code from the other thread:Parsnipnose3000 wrote:Hi Ken,
Is this question answered in your other thread?
http://www.mjtnet.com/forum/system-inde ... t7922.html
Code: Select all
//Use YYYY,MM,DD
datelocal>2013,12,31,EndScrapingAtThisDate
//See what it looks like
mdl>%EndScrapingAtThisDate%
Not sure what you mean, Marcus. There have always been seven different short date formats. You can set "Additional" formats, but this is not necessary for dd-MMM-yy, which is already there. Shouldn't DatePart work with all seven?Marcus Tettmar wrote:I can confirm same results here. Notably that date format was not in my list of choices in Control Panel and I had to go to advanced settings to override it to get that date format.
DatePart should cope with all "standard" and common settings but it can't work with everything and I guess this is one of them.
Thank you for looking at it further, Marcus. Oddly, I have always assumed this is the "normal" European format. My EU clients use this and claim "it is the only unambiguous date format to use for global applications," since the month is spelled out. Go figure.Marcus Tettmar wrote:I've made a note to investigate.