This diploma thesis describes theoretical basics of dynamic assignment in a macroscopic and a microscopic model. Dynamic assignment is useful for modeling rush hours in urban areas because temporal spreading of peak hours is increasingly common phenomenon due to shifting the departure earlier or later in time. To model this phenomenon the origin-destination matrix has to be modified through time, which is not possible with static assignment. The assignment in macroscopic model is presented in program Visum with Dynamic User Equilibrium (DUE) and with Dynamic Stochastic assignment method with different distribution models: Logit, Kirchhoff, Box-Cox, Lohse and Lohse with variable beta. The dynamic assignment in microscopic model is presented in the program VisSim. The practical aspect of dynamic assignment is presented on a model of the town Murska Sobota where influence of various factors and functions in programs Visum and VisSim was tested.