Monday, 28 August 2017

String was not recognized as a valid DateTime in C#

Issue :

String was not recognized as a valid DateTime.

Solution:
String date="29/08/2017 09:56:00";
  DateTime dateFormatted = Convert.ToDateTime(date, CultureInfo.GetCultureInfo("ur-PK").DateTimeFormat);

MS Visual Studio 2015 Pro & Enterprise Keys

Professional Version
HMGNV-WCYXV-X7G9W-YCX63-B98R2
Enterprise Version
2XNFG-KFHR8-QV3CP-3W6HT-683CH
HM6NR-QXX7C-DFW2Y-8B82K-WTYJV

Saturday, 26 August 2017

Enable Telnet Client in Windows 8 and Server 2012 Using PowerShell

1. Open the PowerShell window with "Run as Administrator".

2. In the PowerShell  window type the following line:
Import-Module servermanager

3. Then type:
Add-WindowsFeature telnet-client