Home› Community Forums› Magic ETL

How to get the second week Tuesday in a month?

user15938
user15938 Member
June 2019 in Magic ETL

How to get the second week Tuesday in a month?

0

Comments

  • Cartergan
    Cartergan Contributor
    June 2019

    Try:

      SELECT DATEADD(DAY, (DATEDIFF(DAY, 3,  
    DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0)) / 7) * 7 + 14, 1)
    0

Categories

  • All Categories
  • Product Ideas
  • 2.1K Ideas Exchange
  • Connect
  • 1.3K Connectors
  • 309 Workbench
  • 7 Cloud Amplifier
  • 10 Federated
  • Transform
  • 664 Datasets
  • 120 SQL DataFlows
  • 2.3K Magic ETL
  • 825 Beast Mode
  • Visualize
  • 2.6K Charting
  • 88 App Studio
  • 46 Variables
  • 639 Cards, Dashboards, Stories
  • Automate
  • 195 Apps
  • 486 APIs & Domo Developer
  • 94 Workflows
  • 24 Code Engine
  • AI and Machine Learning
  • 23 AI Chat
  • 4 AI Projects and Models
  • 18 Jupyter Workspaces
  • Distribute
  • 119 Domo Everywhere
  • 283 Scheduled Reports
  • 11 Software Integrations
  • Manage
  • 143 Governance & Security
  • 5 Buzz & Navigation
  • 11 Domo Community Gallery
  • 49 Product Releases
  • 13 Domo University
  • Community Forums
  • 41 Getting Started
  • 31 Community Member Introductions
  • 116 Community Announcements
  • 149 Social Groups
  • 5K Archive