Skip to content

Instantly share code, notes, and snippets.

///////////////////////////////////////
//if datetime is null return min value
///////////////////////////////////////
var tradeDate = (r["Trade Date"]).ToString();
var settlementDate = (r["Stl Date"]).ToString();
if ((r["Stl Date"]) != null){
tradeDate = Convert.ToDateTime(r["Trade Date"]).ToString("MM/dd/yyyy");
}
else tradeDate = DateTime.MinValue.ToString();
=System.Text.RegularExpressions.Regex.Replace(Fields!ssn_ein_id.Value, "(\d{3})[-.]*(\d{2})[-.]*(\d{4})", "$1-$2-$3")
@DapperJohn
DapperJohn / CodeThree
Created November 5, 2013 22:19
Code for program 3.
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
struct node
{
@DapperJohn
DapperJohn / PseudoTwo
Created November 5, 2013 18:42
PseudoCode for two
MinimumHeap(A){
return A[1];
}
ExtractMin(A){
if (heap-size[A] < 1) {
then error ``heap underflow''
min <- A[1]
A[1] <- A[heap-size[A]]
heap-size[A] <- heap-size[A] - 1