Portfolio optimization plays a significant role in financial decisions. In finance terms, a collection of all stocks or assets held by a public or private institute is known as a portfolio. The portfolio selection problem refers to the optimal distribution of budget on the available stocks such that the expected mean-return is maximized (profit), and the risk is minimized. The factor to measure risk is the variance of the portfolio return, smaller the variance lower will be the risk. This approach was introduced few decades ago by Markowitz's modern portfolio theory. The Markowitz mean-variance portfolio selection (MVPS) is widely considered as a significant investment method. The use of quadratic programming (QP) techniques is one option for addressing the static MVPS problem. The continuous-time MVPS (CTMVPS) problem is defined and studied as a time-varying (TV) quadratic programming (TVQP) problem in this article. Using real-world datasets, the CTMVPS problem is approached by two different TVQP neural network solvers. These solvers are based on the Lagrange multiplier method and are called the zeroing neural network (ZNN) and the linearvariational-inequality primal-dual neural network (LVI-PDNN). The experiment findings illustrate and compare the performances of the ZNN and LVI-PDNN solvers in two various portfolio configurations. According to the numerical experiments, when the portfolio has small dimensions, the ZNN solver outperforms the LVI-PDNN solver in terms of accuracy, however when the portfolio has large dimensions, the contrary is happening. As a result, the efficiency of NN solvers is primarily determined by the portfolio dimensions. Our approach is also verified by these experiments as an excellent alternative to conventional MATLAB methods, i.e., the MATLAB's QP solver "quadprog". To the best of our knowledge, this is an innovative approach that incorporates robust neural network techniques to provide an online, thus more realistic, solution to the CTMVPS problem. In this way, we present an online solution to a TV financial problem while eliminating static method limitations. It is worth mentioning that an online solution consists of consecutive solutions with the feature that the previous solution is used as an initial input instead of a random input at each solution's iterative process. Hence, the online solution of a time-varying financial problem is a great technical analysis tool as well as an important financial analysis tool. In addition, to promote and contend the outcomes of this research, we created a MATLAB repository for the interested user, that are publicly accessible on GitHub. [ABSTRACT FROM AUTHOR]