John was born on February 4th, 1848 in Edinburgh and his baptism took place there on April 2nd, 1848.1
Birth Notes
Name John Ramsay Sex Male Christening Date 2 Apr 1848 Christening Place Edinburgh, Edinburghshire, Scotland, United Kingdom Christening Place (Original) Bread Street United Church, Edinburgh, Midlothian, Scotland Birth Date 4 Feb 1848 Father's Name James Ramsay Mother's Name Bythinar Reeder
"Scotland Births and Baptisms, 1564-1950", database, FamilySearch (https://familysearch.org/ark:/61903/1:1:XY9F-QJZ : 12 February 2020), James Ramsay in entry for John Ramsay, 1848.