HiI want to use CurrentDateTime macro in SQl Query. But the returned date is not compatible with sql date string format.also how i can convert datetime using invariant culture in macro.say my date time format is in hijry , I need to convert result of CurrentDateTime to sql date string format using invariant culture format.SELECT * from cms_users where UserCreatedWhen = {%CurrentDateTime.ToString(@s@)%}
// this can be true for georgian cultures but if my culture set to another culture like fa-ir i need to use InvariantCulture in ToString Method.(How i can do this)
not these all must be down using macro.Is there any way?
↧