What is the schedule cron expression for setting up every Monday and Wednesday at 4 PM IST?

Kunal K 0 Reputation points
2023-07-13T08:52:20.4066667+00:00

I'm trying to set up a recurring schedule using cron expressions. Specifically, I want to schedule a task to run on Mondays and Wednesdays at 4 PM in the Indian Standard Time (IST) timezone. Could you please provide me with the appropriate cron expression to achieve this?

This is related to azure function.
Currently the azure function is running in an server , australian server but i want the timer trigger to hit at every monday, wednesday 4pm Indian standard time?
can anyone tell me what is the proper expression for that?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,916 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 25,106 Reputation points Microsoft Employee Moderator
    2023-07-13T09:47:15.02+00:00

    @Kunal K Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
    You can use the below CORN expression to run your timer trigger from Monday-Wednesday at 4PM IST.

    0 0 16 * * Mon-Wed
    

    If you want to run your function app in IST time zone then you need to add the application settings WEBSITE_TIME_ZONE with value India Standard Time.

    Ideally, function app will run in UTC time zone if you want to keep function app running in time zone and you want your time trigger to get triggered at 4PM IST you need to change the CORN Expression.

    0 30 10 * * Mon-Wed
    

    You can make use this NCORN expression generator to review/evaluate your CORN expression

    Feel free to reach back to me if you have any questions on this.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.