About 18,400 results
Open links in new tab
  1. Convert a datetime to date in SFMC - Salesforce Stack Exchange

    Mar 17, 2022 · This can be done using the following SQL function (CONVERT): SELECT CONVERT([data type], [value to convert], [style]) The values inside the [] should be replaced with the …

  2. Date format in SQL query - Salesforce Stack Exchange

    Date data types in SFMC are DateTime (or DateTime2) data types behind the scenes, so the time is always included. It's best to use AMPscript to format these, as you can't dictate the format stored in …

  3. How to correctly convert Unix Timestamp to datetime in SQL

    Oct 26, 2021 · 1 I'm trying to get the date format dd/MM/YYYY or anything readable. actually I have the date data with this format stocked in a string field "1620305130000" I have tried the following …

  4. How to display Month in TEXT format using SQL query in marketing …

    If you are looking to display the full name of the month via the SQL query you have written, I would use the below code - utilizing the FORMAT function inside of SQL: FORMAT(yourDateField, 'MMMM') …

  5. Using query for a specific date - Salesforce Stack Exchange

    May 29, 2017 · According to the documentation article Query: Find Subscribers by Date or Time Frame the date format to use is 'YYYY-MM-DD' so in your case '2017-05-29' should be correct. However in …

  6. Converting date/time to string in Marketing Cloud's SQL - string to ...

    Oct 3, 2019 · We are trying to convert a string field to a date field using the CAST function in Marketing Cloud. Our goal is to use the newly converted date records to segment our subscribers based on the …

  7. marketing cloud - Add a date field to SQL and convert the formatting …

    Apr 20, 2023 · I have an SQL running off a data view tabe and I need to add the ExtractDate to the target Data extensio.Date field doesn't exist in this Dataview tablem so apart from adding it, I need to …

  8. sql - Marketing Coud: Always use CAST and CAST with date fields from ...

    When querying SF Marketing Cloud data views, specifically its date-type fields (e.g. EventDate), Salesforce support suggested we should always use SQL functions: CONVERT (e.g. varchar, …

  9. Why can't my sms be sent? - Mobile Connect SFMC

    Mar 28, 2025 · Sync data from Sales Cloud (with incorrect format phone numbers) Format the number number with SQL Mobile Import Contact Activity with SQL I get a D.E with correct format phone …

  10. marketing cloud - How to create a sql query in SFMC with where clause ...

    Jan 30, 2023 · I am trying to create a query that pulls the record from _open data view before a specific date and time, how to do that in sql? I am currently doing this for defining the date: Select * from …