Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str10 week float google_search_volume_index
"2004-09-12"   .6
"2004-09-19"   .5
"2004-09-26"   .5
"2004-10-03"   .5
"2004-10-10"   .5
"2004-10-17"   .5
"2004-10-24"  .55
"2004-10-31"  .55
"2004-11-07"  .55
"2004-11-14"  .55
"2004-11-21"   .6
"2004-11-28"   .5
"2004-12-05"   .5
"2004-12-12"   .5
"2004-12-19"   .5
"2004-12-26"  .55
"2005-01-02"  .55
"2005-01-09"   .6
"2005-01-16"   .7
"2005-01-23"  .65
"2005-01-30"   .7
"2005-02-06"  .75
"2005-02-13"   .8
"2005-02-20"  .85
"2005-02-27"  .55
"2005-03-06"   .6
"2005-03-13"  .75
"2005-03-20"  .85
"2005-03-27"   .7
"2005-04-03"  .75
"2005-04-10"   .9
"2005-04-17"   .8
"2005-04-24"    1
"2005-05-01" 1.05
"2005-05-08"  .95
"2005-05-15" 1.05
"2005-05-22" 1.05
"2005-05-29"   .9
"2005-06-05" 1.15
"2005-06-12"  1.1
"2005-06-19"  .85
"2005-06-26"  .95
"2005-07-03"  .95
"2005-07-10"   .9
"2005-07-17" 1.05
"2005-07-24" 1.15
"2005-07-31" 1.15
"2005-08-07"   .9
"2005-08-14"  .95
"2005-08-21"  1.2
"2005-08-28"  1.5
"2005-09-04" 1.35
"2005-09-11" 1.25
"2005-09-18" 1.35
"2005-09-25"  1.6
"2005-10-02" 1.75
"2005-10-09"  1.4
"2005-10-16"  2.8
"2005-10-23"  3.4
"2005-10-30"  3.6
"2005-11-06" 2.35
"2005-11-13"  2.3
"2005-11-20"  1.6
"2005-11-27" 1.55
"2005-12-04"  1.7
"2005-12-11"  1.6
"2005-12-18"  1.9
"2005-12-25" 1.55
"2006-01-01" 1.65
"2006-01-08"  1.5
"2006-01-15"  1.4
"2006-01-22" 1.15
"2006-01-29" 1.35
"2006-02-05"  1.3
"2006-02-12" 1.05
"2006-02-19"  1.3
"2006-02-26"  1.3
"2006-03-05" 1.35
"2006-03-12" 1.35
"2006-03-19"  1.1
"2006-03-26"  .95
"2006-04-02" 1.05
"2006-04-09"    1
"2006-04-16" 1.15
"2006-04-23"  .95
"2006-04-30" 1.35
"2006-05-07" 1.25
"2006-05-14" 1.45
"2006-05-21" 1.25
"2006-05-28" 1.35
"2006-06-04" 1.25
"2006-06-11" 1.05
"2006-06-18" 1.25
"2006-06-25" 1.15
"2006-07-02" 1.05
"2006-07-09" 1.05
"2006-07-16" 1.15
"2006-07-23"   .9
"2006-07-30"    1
"2006-08-06"  1.6
end
I need to transfer my "week" variable to the date, because my next step is drawing a figure: Time-series line plot. The y-axis is my 2nd variable, and the x-axis is the date.