declare @dateTime datetime2 = SYSDATETIME() declare @dateTimeOffset datetimeoffset = SYSDATETIMEOFFSET() select @dateTime as [CurrentDateTime], @dateTimeOffset as [CurrentDateTimeOffset], CAST(@dateTime as datetimeoffset) as [DateTimeOffset1], TODATETIMEOFFSET(@dateTime, '+07:00') as [DateTimeOffset2], TODATETIMEOFFSET(@dateTime, RIGHT(SYSDATETIMEOFFSET(), 6)) as [DateTimeOffset3]
Lập Trình .NET
Thứ Ba, 2 tháng 8, 2022
[SQL Server] Convert DateTime to DateTimeOffset
Chủ Nhật, 24 tháng 7, 2022
[C#] StringBuilder Internals
Using the StringBuilder Class in .NET | Microsoft Docs
Manipulating C# Strings with StringBuilder | CodeGuru.com
https://referencesource.microsoft.com/#mscorlib/system/text/stringbuilder.cs
https://source.dot.net/#System.Private.CoreLib/StringBuilder.cs
Chủ Nhật, 17 tháng 7, 2022
Thứ Ba, 7 tháng 9, 2021
[C#] The request was aborted: Could not create SSL/TLS secure channel
- Create tls-ssl-settings.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319] "SystemDefaultTlsVersions"=dword:00000001 "SchUseStrongCrypto"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319] "SystemDefaultTlsVersions"=dword:00000001 "SchUseStrongCrypto"=dword:00000001- Execute the reg file.
- Done.
Links:
Chủ Nhật, 22 tháng 8, 2021
[Windows] Configuring FTP Server
https://www.c-sharpcorner.com/article/configuring-ftp-server-in-microsoft-azure/
https://docs.microsoft.com/en-us/samples/azure-samples/sftp-creation-template/sftp-on-azure/
https://cloudinfrastructureservices.co.uk/how-to-setup-ftp-server-using-azure-file-share/
https://charbelnemnom.com/how-to-deploy-sftp-service-on-microsoft-azure/
Thứ Bảy, 21 tháng 8, 2021
Thứ Sáu, 6 tháng 8, 2021
[Js] Removing Service Workers Programmatically
if(window.navigator && navigator.serviceWorker) { navigator.serviceWorker.getRegistrations() .then(function(registrations) { for(let registration of registrations) { registration.unregister(); } }); }https://stackoverflow.com/questions/33704791/how-do-i-uninstall-a-service-worker
Đăng ký:
Bài đăng
(
Atom
)