Function datetime on differents contry like brazil and EUA
Posted on 2007-07-21
hi experts, i have a huge problem trying to make a solution for this one, so Here in EUA the date come month first then the day, but in brazil the day comes first then the month, like this:
brazil : 22/10/1985 20:15:22 pm
eua : 10/22/1985 20:15:22 pm
so, my problem is when the regional and language option on painel control is Portuguese(brazil) my program give allways a error converting data to english format, here is the command that i'm using:
FormatDateTime('dd/MM/yyyy hh:nn:ss AM/PM',now())
for my understand, when I put now() then comes a brazilian format, when it trys to converto to english format, then the error shows up. Is there anyway to put only english date format on my program????