# Convert current time to day (or seconds) of the year?

**URL:** <https://forum.kirupa.com/t/convert-current-time-to-day-or-seconds-of-the-year/227415>\
**Category:** Uncategorized\
**Created:** [May 30, 2007, 4:24am UTC](https://forum.kirupa.com/t/convert-current-time-to-day-or-seconds-of-the-year/227415 "2007-05-30T04:24:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chup](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chup/32/925_2.png) [@chup](https://forum.kirupa.com/u/chup)\
**Post date:** [May 30, 2007, 4:24am UTC](https://forum.kirupa.com/t/convert-current-time-to-day-or-seconds-of-the-year/227415/1 "2007-05-30T04:24:23Z")

</div>

Hi, does anyone know a formula that can convert the current time/day to the day of the year or seconds?

like 30th May sld be the 150th day of 2007 etc…

tks
