You have to apply to the court and get a court date. Notice of the hearing must be provided at least 30 days in advance. The results can be appealed. I would say it takes a couple months.
Please refer to RCW 9.41.070: (1) The chief of police of a municipality or the sheriff of a county shall within thirty days after the filing of an application of any person, issue a license to such...