def format_date(ctx, text):
    """
    Takes a single parameter (date as string) and returns it in the format defined by the org
    """
    dt = conversions.to_datetime(text, ctx)
    return dt.astimezone(ctx.timezone).strftime(ctx.get_date_format(True))
Takes a single parameter (date as string) and returns it in the format defined by the org