Jump to content

How do I make the date appear only once each day?


wassanova

Recommended Posts

Hey everbody,

 

I'm new to coding so pardon me if this is a simple questions. On my blog, I'm trying to get the date to appear once per day with all posts under that date appearing underneath the date. Does anyone know how I could accomplish this? Thanks!

 

Greg

pseudocode

set prevdate = ''

while read next record

     if date != prevdate
              output date
              set prevdate = date
     end if

     output other data from record

end while

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.