public void insertAccountData(string _UserName, string profileID, int SendInvitationCount) { clsDBQueryManager Qm = new clsDBQueryManager(); var dateAndTime = DateTime.Now; var date = dateAndTime.Date; string Date = dateAndTime.ToString("dd/MM/yyyy"); Qm.InsertAccountsDetailsSetting(_UserName, profileID, Date, SendInvitationCount); }