This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
<cfsavecontent variable="test"> | |
1234567890<br> | |
<cfsavecontent variable="text"> | |
<i>asdfghjkl</i> | |
</cfsavecontent> | |
#text# | |
</cfsavecontent> | |
</cfoutput> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfsavecontent variable="test"> | |
1234567890<br> | |
<cfsavecontent variable="text"> | |
<i>asdfghjkl</i> | |
</cfsavecontent> | |
</cfsavecontent> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
public struct function ConvertTimeDisplay( | |
required string isoDateTime, | |
string convertTo = "Europe/London" | |
) { | |
var ZonedDateTime = createObject("java", "java.time.ZonedDateTime"); | |
var ZoneId = createObject("java", "java.time.ZoneId"); | |
var DateTimeFormatter = createObject("java", "java.time.format.DateTimeFormatter"); | |
// Parse the ISO datetime string (includes its offset/Z) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
public date function ConvertTimeDisplay( | |
required string isoDateTime, | |
string convertTo = "Europe/London" | |
) { | |
var ZonedDateTime = createObject("java", "java.time.ZonedDateTime"); | |
var ZoneId = createObject("java", "java.time.ZoneId"); | |
var DateTimeFormatter = createObject("java", "java.time.format.DateTimeFormatter"); | |
// Parse the ISO datetime string (includes its offset/Z) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset dateTime = "2025-09-02T11:59:00.000Z"> | |
<cfset convertTo = "Europe/London"> | |
<cfscript> | |
var ZonedDateTime = createObject("java", "java.time.ZonedDateTime"); | |
var ZoneId = createObject("java", "java.time.ZoneId"); | |
var DateTimeFormatter = createObject("java", "java.time.format.DateTimeFormatter"); | |
// Parse the ISO datetime string (includes its offset/Z) | |
var zdt = ZonedDateTime.parse(isoDateTime); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset dateTime = "2025-09-02T11:59:00.000Z"> | |
<cfset convertTo = "Europe/London" | |
<cfscript> | |
var ZonedDateTime = createObject("java", "java.time.ZonedDateTime"); | |
var ZoneId = createObject("java", "java.time.ZoneId"); | |
var DateTimeFormatter = createObject("java", "java.time.format.DateTimeFormatter"); | |
// Parse the ISO datetime string (includes its offset/Z) | |
var zdt = ZonedDateTime.parse(isoDateTime); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
data = DeserializeJson('{"id":"4870182084","properties":{"address":"Street Address 1x","address2":"Street Address 2","business_region":null,"city":"The City","company_type":"partner","country":"United Kingdom","createdate":"2020-11-19T11:37:25.253Z","csm":null,"email":"fd","hs_ideal_customer_profile":null,"hs_lastmodifieddate":"2023-10-02T11:04:13.844Z","hs_object_id":"4870182084","hubspot_owner_id":"53424816","name":"Test Company","phone":"+44207555556","shortcode":"TCO","state":"The County","town":null,"website":"test.co","zip":"TN33 9CC"},"createdAt":"2020-11-19T11:37:25.253Z","updatedAt":"2023-10-02T11:04:13.844Z","archived":false}'); | |
rawRemoteIdField = "properties.hs_object_idx"; | |
var parts = listToArray( rawRemoteIdField, "." ); | |
var currentData = duplicate( data ); | |
for ( var part in parts ) { | |
writeDump( "part:#part#") | |
if ( StructKeyExists( currentData, part ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
data = DeserializeJson('{"id":"4870182084","properties":{"address":"Street Address 1x","address2":"Street Address 2","business_region":null,"city":"The City","company_type":"partner","country":"United Kingdom","createdate":"2020-11-19T11:37:25.253Z","csm":null,"email":"fd","hs_ideal_customer_profile":null,"hs_lastmodifieddate":"2023-10-02T11:04:13.844Z","hs_object_id":"4870182084","hubspot_owner_id":"53424816","name":"Test Company","phone":"+44207555556","shortcode":"TCO","state":"The County","town":null,"website":"test.co","zip":"TN33 9CC"},"createdAt":"2020-11-19T11:37:25.253Z","updatedAt":"2023-10-02T11:04:13.844Z","archived":false}'); | |
writeDump( data) | |
rawRemoteIdField = "properties.hs_object_id"; | |
var parts = listToArray( rawRemoteIdField, "." ); | |
var currentData = duplicate( data ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
data = DeserializeJson('{"id":"4870182084","properties":{"address":"Street Address 1x","address2":"Street Address 2","business_region":null,"city":"The City","company_type":"partner","country":"United Kingdom","createdate":"2020-11-19T11:37:25.253Z","csm":null,"email":"fd","hs_ideal_customer_profile":null,"hs_lastmodifieddate":"2023-10-02T11:04:13.844Z","hs_object_id":"4870182084","hubspot_owner_id":"53424816","name":"Test Company","phone":"+44207555556","shortcode":"TCO","state":"The County","town":null,"website":"test.co","zip":"TN33 9CC"},"createdAt":"2020-11-19T11:37:25.253Z","updatedAt":"2023-10-02T11:04:13.844Z","archived":false}'); | |
writeDump( data) | |
rawRemoteField = "properties.hs_object_id"; | |
writeDump( data[ rawRemoteField ] ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
left = '996012564777658757'; | |
right = '996012564777658758'; | |
dump(variables); | |
if (left eq right) | |
echo("eq"); | |
else | |
echo("neq"); |
NewerOlder