# AS2::Removing text from a string

**URL:** <https://forum.kirupa.com/t/as2-removing-text-from-a-string/248456>\
**Category:** flash\
**Created:** [January 8, 2008, 11:35am UTC](https://forum.kirupa.com/t/as2-removing-text-from-a-string/248456 "2008-01-08T11:35:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilleypants](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@lilleypants](https://forum.kirupa.com/u/lilleypants)\
**Post date:** [January 8, 2008, 11:35am UTC](https://forum.kirupa.com/t/as2-removing-text-from-a-string/248456/1 "2008-01-08T11:35:35Z")

</div>

I have a time format like so: 00:00:00.00 (hours, minutes, seconds, millieseconds). This is stored into a string called adminTime.

But I need to make it so that the string takes what ever the time is and changes it to 00:00 (hours and minutes)

So basically a way of looping though the string and removing the seonds and milleseconds.

Thanks for any help.
